Skip to content

Commit

Permalink
test(externalclock): fix test for SetTimestamp
Browse files Browse the repository at this point in the history
Previous version of the test was calling the function twice, which
happened to be a workaround to make it work.
  • Loading branch information
tvkn committed Jan 11, 2023
1 parent 5ef8899 commit 211f0e1
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion externalclock/clock_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ func TestExternalClock_Now(t *testing.T) {
for i := 0; i < 10; i++ { // repeat a few times to try to trigger racing
for _, ts := range timeList {
// Given
externalClock.SetTimestamp(time.Unix(0, 1))
externalClock.SetTimestamp(ts)
// Expect
cnow := externalClock.Now()
Expand Down

0 comments on commit 211f0e1

Please sign in to comment.