Skip to content

Commit

Permalink
PR Feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
travis-minke-sap committed Apr 20, 2021
1 parent 05ab154 commit 81399c7
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions pkg/kncloudevents/message_sender_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -233,11 +233,7 @@ func TestRetryConfigFromDeliverySpec(t *testing.T) {
for i := 1; i < retry; i++ {
expectedBackoffDuration := tc.expectedBackoffDurations[i-1]
actualBackoffDuration := retryConfig.Backoff(i, tc.response)
if tc.roundExpectedDuration > 0 {
assert.Equal(t, expectedBackoffDuration, actualBackoffDuration.Round(tc.roundExpectedDuration)) // Round Time String Cases
} else {
assert.Equal(t, expectedBackoffDuration, actualBackoffDuration)
}
assert.Equal(t, expectedBackoffDuration, actualBackoffDuration.Round(tc.roundExpectedDuration)) // Round Time String Cases
}
}
})
Expand Down

0 comments on commit 81399c7

Please sign in to comment.