summaryrefslogtreecommitdiffhomepage
path: root/device/device_test.go
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2021-02-17 22:19:27 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2021-02-17 22:19:27 +0100
commit8bf4204d2ea388e662bd58950c2f4a61b8f92b01 (patch)
tree9a17c2cf9a9d7fb6f32ec2b60c1fc91585ed9d01 /device/device_test.go
parent4e439ea10e327d4894a5d2db2611e1fd03f54188 (diff)
global: stop using ioutil
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'device/device_test.go')
-rw-r--r--device/device_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/device/device_test.go b/device/device_test.go
index 02b1c35..7958fb9 100644
--- a/device/device_test.go
+++ b/device/device_test.go
@@ -10,7 +10,7 @@ import (
"encoding/hex"
"errors"
"fmt"
- "io/ioutil"
+ "io"
"math/rand"
"net"
"runtime"
@@ -402,7 +402,7 @@ func BenchmarkUAPIGet(b *testing.B) {
b.ReportAllocs()
b.ResetTimer()
for i := 0; i < b.N; i++ {
- pair[0].dev.IpcGetOperation(ioutil.Discard)
+ pair[0].dev.IpcGetOperation(io.Discard)
}
}