Properly close DummyTUN to avoid deadlock in TestNoiseHandshake
License: MIT Signed-off-by: Filippo Valsorda <valsorda@google.com>
This commit is contained in:
committed by
Jason A. Donenfeld
parent
1c666576d5
commit
7bdc5eb54e
@@ -58,6 +58,7 @@ func TestNoiseHandshake(t *testing.T) {
|
||||
packet := make([]byte, 0, 256)
|
||||
writer := bytes.NewBuffer(packet)
|
||||
err = binary.Write(writer, binary.LittleEndian, msg1)
|
||||
assertNil(t, err)
|
||||
peer := dev2.ConsumeMessageInitiation(msg1)
|
||||
if peer == nil {
|
||||
t.Fatal("handshake failed at initiation message")
|
||||
|
||||
Reference in New Issue
Block a user