aboutsummaryrefslogtreecommitdiff
path: root/actions/hashing_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'actions/hashing_test.go')
-rw-r--r--actions/hashing_test.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/actions/hashing_test.go b/actions/hashing_test.go
index d249d8b..26f627b 100644
--- a/actions/hashing_test.go
+++ b/actions/hashing_test.go
@@ -20,7 +20,7 @@
package actions
import (
- "io/ioutil"
+ "io"
"log"
"testing"
"time"
@@ -43,10 +43,10 @@ func TestCostsSearch(t *testing.T) {
t.Error(err)
}
- if actual*2 < target {
+ if actual*3 < target {
t.Errorf("actual=%v is too small (target=%v)", actual, target)
}
- if target*2 < actual {
+ if target*3 < actual {
t.Errorf("actual=%v is too big (target=%v)", actual, target)
}
}
@@ -54,7 +54,7 @@ func TestCostsSearch(t *testing.T) {
func benchmarkCostsSearch(b *testing.B, target time.Duration) {
// Disable logging for benchmarks
- log.SetOutput(ioutil.Discard)
+ log.SetOutput(io.Discard)
for i := 0; i < b.N; i++ {
_, err := getHashingCosts(target)
if err != nil {