Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
kevmo314 committed Jul 19, 2024
1 parent 5878ef2 commit dd8d722
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion conn_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1575,10 +1575,10 @@ func TestServerCertificate(t *testing.T) {
}()

cli, err := Client(dtlsnet.PacketConnFromConn(ca), ca.RemoteAddr(), tt.clientCfg)
hserr := cli.Handshake()
if err == nil {
_ = cli.Close()
}
hserr := cli.Handshake()
if !tt.wantErr && (err != nil || hserr != nil) {
t.Errorf("Client failed(%v, %v)", err, hserr)
}
Expand Down

0 comments on commit dd8d722

Please sign in to comment.