passes tests now!
This commit is contained in:
@@ -21,7 +21,7 @@ func TestDebugLogging(t *testing.T) {
|
||||
os.Setenv("GODEBUG", originalGodebug)
|
||||
}
|
||||
// Re-initialize debug system with original setting
|
||||
initDebugLogging()
|
||||
InitDebugLogging()
|
||||
}()
|
||||
|
||||
tests := []struct {
|
||||
@@ -61,7 +61,7 @@ func TestDebugLogging(t *testing.T) {
|
||||
}
|
||||
|
||||
// Re-initialize debug system
|
||||
initDebugLogging()
|
||||
InitDebugLogging()
|
||||
|
||||
// Test if debug is enabled
|
||||
enabled := IsDebugEnabled()
|
||||
@@ -112,10 +112,10 @@ func TestDebugFunctions(t *testing.T) {
|
||||
} else {
|
||||
os.Setenv("GODEBUG", originalGodebug)
|
||||
}
|
||||
initDebugLogging()
|
||||
InitDebugLogging()
|
||||
}()
|
||||
|
||||
initDebugLogging()
|
||||
InitDebugLogging()
|
||||
|
||||
if !IsDebugEnabled() {
|
||||
t.Log("Debug not enabled, but continuing with debug function tests anyway")
|
||||
|
||||
Reference in New Issue
Block a user