Skip to content
This repository has been archived by the owner on Sep 6, 2022. It is now read-only.

Commit

Permalink
remove flaky tests (#194)
Browse files Browse the repository at this point in the history
  • Loading branch information
Cory Schwartz committed Apr 15, 2021
1 parent 286b97a commit 525a0b1
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions metrics/bandwidth_test.go
Expand Up @@ -113,23 +113,6 @@ func TestBandwidthCounter(t *testing.T) {

time.Sleep(time.Second)
close(start)
time.Sleep(2*time.Second + 100*time.Millisecond)

assertPeers(func(stats Stats) {
assertApproxEq(t, 2000, stats.RateOut)
assertApproxEq(t, 1000, stats.RateIn)
})

assertProtocols(func(stats Stats) {
assertApproxEq(t, 100000, stats.RateOut)
assertApproxEq(t, 50000, stats.RateIn)
})

{
stats := bwc.GetBandwidthTotals()
assertApproxEq(t, 200000, stats.RateOut)
assertApproxEq(t, 100000, stats.RateIn)
}

wg.Wait()
time.Sleep(1 * time.Second)
Expand Down

0 comments on commit 525a0b1

Please sign in to comment.