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

Commit 525a0b1

Browse files
author
Cory Schwartz
authored
remove flaky tests (#194)
1 parent 286b97a commit 525a0b1

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

metrics/bandwidth_test.go

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -113,23 +113,6 @@ func TestBandwidthCounter(t *testing.T) {
113113

114114
time.Sleep(time.Second)
115115
close(start)
116-
time.Sleep(2*time.Second + 100*time.Millisecond)
117-
118-
assertPeers(func(stats Stats) {
119-
assertApproxEq(t, 2000, stats.RateOut)
120-
assertApproxEq(t, 1000, stats.RateIn)
121-
})
122-
123-
assertProtocols(func(stats Stats) {
124-
assertApproxEq(t, 100000, stats.RateOut)
125-
assertApproxEq(t, 50000, stats.RateIn)
126-
})
127-
128-
{
129-
stats := bwc.GetBandwidthTotals()
130-
assertApproxEq(t, 200000, stats.RateOut)
131-
assertApproxEq(t, 100000, stats.RateIn)
132-
}
133116

134117
wg.Wait()
135118
time.Sleep(1 * time.Second)

0 commit comments

Comments
 (0)