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

remove flaky tests #194

Merged
merged 1 commit into from
Apr 15, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 0 additions & 17 deletions metrics/bandwidth_test.go
Original file line number Diff line number Diff line change
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