Skip to content

Commit

Permalink
move debug directive to test files
Browse files Browse the repository at this point in the history
  • Loading branch information
fairclothjm committed Jan 15, 2025
1 parent 86b1a7e commit 2f16f66
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 0 additions & 2 deletions testutil/mssqlhelper.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
//go:debug x509negativeserial=1

// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0

Expand Down
5 changes: 5 additions & 0 deletions vault/resource_database_secret_backend_connection_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
//go:debug x509negativeserial=1

Check failure on line 1 in vault/resource_database_secret_backend_connection_test.go

View workflow job for this annotation

GitHub Actions / build

previous //go:debug

// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0

// NOTE: x509negativeserial above is a workaround for https://github.com/microsoft/mssql-docker/issues/895 which manifests in our tests as
// tls: failed to parse certificate from server: x509: negative serial number in test case failures.

package vault

import (
Expand Down
5 changes: 5 additions & 0 deletions vault/resource_database_secrets_mount_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
//go:debug x509negativeserial=1

Check failure on line 1 in vault/resource_database_secrets_mount_test.go

View workflow job for this annotation

GitHub Actions / build

repeated //go:debug for x509negativeserial

// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0

// NOTE: x509negativeserial above is a workaround for https://github.com/microsoft/mssql-docker/issues/895 which manifests in our tests as
// tls: failed to parse certificate from server: x509: negative serial number in test case failures.

package vault

import (
Expand Down

0 comments on commit 2f16f66

Please sign in to comment.