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

Commit

Permalink
test: make bandwidth errors more lax
Browse files Browse the repository at this point in the history
  • Loading branch information
Stebalien committed Jul 13, 2021
1 parent 16ebbb1 commit 3d07589
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions metrics/bandwidth_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ func round(bwc *BandwidthCounter, b *testing.B) {
b.StopTimer()
}

// Allow 1% errors for bw calculations.
const acceptableError = 0.01
// Allow 10% errors for bw calculations and CI shenanigans.
const acceptableError = 0.1

func TestBandwidthCounter(t *testing.T) {
bwc := NewBandwidthCounter()
Expand Down

0 comments on commit 3d07589

Please sign in to comment.