We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 88fce6a commit 2f78a40Copy full SHA for 2f78a40
tests/certification/state/sqlserver/sqlserver_test.go
@@ -66,9 +66,10 @@ func TestSqlServer(t *testing.T) {
66
// This environment variable is used to revert to the old behavior.
67
// Ref: https://github.com/microsoft/mssql-docker/issues/895
68
oldDebugValue := os.Getenv("GODEBUG")
69
- err := t.Setenv("GODEBUG", "x509negativeserial=1")
70
- if err != nil {
71
- t.Fatalf("Failed to set GODEBUG environment variable: %v", err)
+ t.Setenv("GODEBUG", "x509negativeserial=1")
+
+ if os.Getenv("GODEBUG") != "x509negativeserial=1" {
72
+ t.Fatal("Failed to set GODEBUG environment variable, actual value: " + os.Getenv("GODEBUG"))
73
}
74
defer func() {
75
t.Setenv("GODEBUG", oldDebugValue)
0 commit comments