Skip to content

Commit

Permalink
be considerate about other tests
Browse files Browse the repository at this point in the history
  • Loading branch information
aouji committed Sep 21, 2024
1 parent 2d60e1d commit e485819
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion opensearchtransport/opensearchtransport_internal_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,9 @@ type mockSigner struct {
}

func (m *mockSigner) SignRequest(req *http.Request) error {
m.testHook(req)
if m.testHook != nil {
m.testHook(req)
}
if m.ReturnError {
return fmt.Errorf("invalid data")
}
Expand Down

0 comments on commit e485819

Please sign in to comment.