Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove unnecessary calls to time.Sleep func
Browse files Browse the repository at this point in the history
knbr13 committed Jan 9, 2025
1 parent c006fc1 commit fb62136
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions internal/holsterv4/clock/system_test.go
Original file line number Diff line number Diff line change
@@ -66,7 +66,6 @@ func TestTimerStop(t *testing.T) {

// Then
assert.Equal(t, true, active)
time.Sleep(100)
select {
case <-timer.C():
assert.Fail(t, "Timer should not have fired")
@@ -106,7 +105,6 @@ func TestNewTicker(t *testing.T) {
}

timer.Stop()
time.Sleep(150)
select {
case <-timer.C():
assert.Fail(t, "Ticker should not have fired")

0 comments on commit fb62136

Please sign in to comment.