summaryrefslogtreecommitdiffhomepage
path: root/device/noise_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'device/noise_test.go')
-rw-r--r--device/noise_test.go10
1 files changed, 8 insertions, 2 deletions
diff --git a/device/noise_test.go b/device/noise_test.go
index ce89851..9ef780c 100644
--- a/device/noise_test.go
+++ b/device/noise_test.go
@@ -36,8 +36,14 @@ func TestNoiseHandshake(t *testing.T) {
defer dev1.Close()
defer dev2.Close()
- peer1, _ := dev2.NewPeer(dev1.staticIdentity.privateKey.publicKey())
- peer2, _ := dev1.NewPeer(dev2.staticIdentity.privateKey.publicKey())
+ peer1, err := dev2.NewPeer(dev1.staticIdentity.privateKey.publicKey())
+ if err != nil {
+ t.Fatal(err)
+ }
+ peer2, err := dev1.NewPeer(dev2.staticIdentity.privateKey.publicKey())
+ if err != nil {
+ t.Fatal(err)
+ }
assertEqual(
t,