diff options
Diffstat (limited to 'tests/gobang.go')
-rw-r--r-- | tests/gobang.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/gobang.go b/tests/gobang.go index 7a88f28..518748e 100644 --- a/tests/gobang.go +++ b/tests/gobang.go @@ -640,6 +640,9 @@ func test_SetLoggerOutput() { savedLogger := slog.Default() Testing("the output JSON has data under \"src\"", func() { + saved := SourceInfoSkip + SourceInfoSkip = 3 + s := new(strings.Builder) SetLoggerOutput(s) Info("", "") @@ -670,6 +673,7 @@ func test_SetLoggerOutput() { AssertEqual(ok, true) _, ok = lineRaw.(float64) AssertEqual(ok, true) + SourceInfoSkip = saved }) Testing("the output JSON has data under \"info\"", func() { |