summaryrefslogtreecommitdiffhomepage
path: root/src/noise_test.go
diff options
context:
space:
mode:
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)
}()