Skip to content

Commit

Permalink
Remove assert.Panics, which appears flaky on tip
Browse files Browse the repository at this point in the history
  • Loading branch information
Akshay Shah committed Dec 15, 2016
1 parent 76b3a10 commit d4f0638
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions timers/timers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -185,9 +185,6 @@ func TestBucketListClear(t *testing.T) {
bs.Clear()
all := bs.GatherExpired(0, math.MaxUint64, math.MaxUint64)
assert.Equal(t, 0, all.len(), "Unexpected number of timers after clearing bucketList.")
for i := range bs.buckets {
assert.Panics(t, func() { bs.buckets[i].Unlock() }, "Expected all buckets to be unlocked.")
}
}

func TestTimerBucketCalculations(t *testing.T) {
Expand Down

0 comments on commit d4f0638

Please sign in to comment.