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.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/device/noise_test.go b/device/noise_test.go
index e2f23c6..7c84efc 100644
--- a/device/noise_test.go
+++ b/device/noise_test.go
@@ -148,7 +148,7 @@ func TestNoiseHandshake(t *testing.T) {
t.Fatal("failed to derive keypair for peer 2", err)
}
- key1 := peer1.keypairs.loadNext()
+ key1 := peer1.keypairs.next.Load()
key2 := peer2.keypairs.current
// encrypting / decryption test