summaryrefslogtreecommitdiffhomepage
path: root/src/noise_test.go
diff options
context:
space:
mode:
authorMathias Hall-Andersen <mathias@hall-andersen.dk>2017-07-06 16:24:24 +0200
committerMathias Hall-Andersen <mathias@hall-andersen.dk>2017-07-06 16:24:24 +0200
commit70179f8c8c2eeb39c9a3666012481a25ce39b338 (patch)
tree036dd744f18f62750d431c0dcdb5687e3041451b /src/noise_test.go
parent59f9316f51ce3cb470200b0cfe847116a0583d25 (diff)
Fixed broken test
Diffstat (limited to 'src/noise_test.go')
-rw-r--r--src/noise_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/noise_test.go b/src/noise_test.go
index 9b50ff3..86ddce9 100644
--- a/src/noise_test.go
+++ b/src/noise_test.go
@@ -118,7 +118,7 @@ func TestNoiseHandshake(t *testing.T) {
var out []byte
var nonce [12]byte
out = key1.send.Seal(out, nonce[:], testMsg, nil)
- out, err = key2.recv.Open(out[:0], nonce[:], out, nil)
+ out, err = key2.receive.Open(out[:0], nonce[:], out, nil)
assertNil(t, err)
assertEqual(t, out, testMsg)
}()
@@ -129,7 +129,7 @@ func TestNoiseHandshake(t *testing.T) {
var out []byte
var nonce [12]byte
out = key2.send.Seal(out, nonce[:], testMsg, nil)
- out, err = key1.recv.Open(out[:0], nonce[:], out, nil)
+ out, err = key1.receive.Open(out[:0], nonce[:], out, nil)
assertNil(t, err)
assertEqual(t, out, testMsg)
}()