Skip to content

Commit

Permalink
Add SDS Unit Test (#159)
Browse files Browse the repository at this point in the history
* Add sds unit test

* Address lint errors

* Fix logging test timeout
  • Loading branch information
falfaroc authored Dec 13, 2024
1 parent a319320 commit 77d4eec
Show file tree
Hide file tree
Showing 2 changed files with 690 additions 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 @@ -275,7 +275,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
Loading

0 comments on commit 77d4eec

Please sign in to comment.