Skip to content

Commit

Permalink
Fix logging test timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
falfaroc committed Dec 13, 2024
1 parent d7ade01 commit 66ae6a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/api_logging_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ func TestDrainBody(t *testing.T) {
}

// Test case: b.ReadFrom returns an error
b = io.NopCloser(&ErrorReader{})
b = io.NopCloser(NewErrorReader(fmt.Errorf("simulated error while reading body")))
r1, r2, err = drainBody(b)
if r1 != nil {
t.Errorf("Expected r1 to be nil, got %v", r1)
Expand Down

0 comments on commit 66ae6a6

Please sign in to comment.