Skip to content

Commit

Permalink
fix(style): add information to test fail
Browse files Browse the repository at this point in the history
  • Loading branch information
hannahhoward committed Sep 28, 2021
1 parent f32ba96 commit 81adab5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions testutil/testutil.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,8 @@ func VerifySingleTerminalError(ctx context.Context, t TestingT, errChan <-chan e
var err error
AssertReceive(ctx, t, errChan, &err, "should receive an error")
select {
case _, ok := <-errChan:
require.False(t, ok, "shouldn't have sent second error but did")
case secondErr, ok := <-errChan:
require.Falsef(t, ok, "shouldn't have sent second error but sent: %s, %s", err, secondErr)
case <-ctx.Done():
t.Fatal("errors not closed")
}
Expand Down

0 comments on commit 81adab5

Please sign in to comment.