Skip to content

Commit

Permalink
Fix missing call to cancel context in backoff test (#5386)
Browse files Browse the repository at this point in the history
Signed-off-by: khanhtc1202 <[email protected]>
  • Loading branch information
khanhtc1202 authored Dec 3, 2024
1 parent a6913a1 commit 77b999c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/backoff/backoff_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,8 @@ func TestDo(t *testing.T) {
cancel()
}

defer cancel()

data, err := r.Do(ctx, tc.operation)
assert.Equal(t, tc.expected, data)
assert.Equal(t, tc.expectedErr, err)
Expand Down

0 comments on commit 77b999c

Please sign in to comment.