Skip to content

Commit

Permalink
fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
DimaGolomozy committed Apr 11, 2024
1 parent 140f2e6 commit 9b42a87
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions slog_handler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@ func TestSlogHandler_Send(t *testing.T) {
),
"sdk-go",
"test",
&slog.HandlerOptions{},
&slog.HandlerOptions{
Level: slog.LevelDebug,
},
)
defer func() { recover() }()
defer coralogixHandler.Stop()
Expand Down Expand Up @@ -115,7 +117,7 @@ func TestSlogHandler_Send(t *testing.T) {
t.Run(tc.name, func(t *testing.T) {
msg := fmt.Sprintf("%s (%s)", tc.name, t.Name())
tc.logfn(msg, attr)
time.Sleep(time.Duration(1) * time.Second)
time.Sleep(1 * time.Second)
bulk, ok := mockHTTPServerMap[t.Name()]
assert.True(t, ok, "%s key not found in mockHTTPServerMap", t.Name())

Expand Down

0 comments on commit 9b42a87

Please sign in to comment.