diff --git a/ssms.go b/ssms.go index ad1e84f..6e56ad2 100644 --- a/ssms.go +++ b/ssms.go @@ -64,7 +64,7 @@ func (sm *SSMuxer) SecureOutbound(ctx context.Context, insecure net.Conn, p peer // ensure the correct peer connected to us if sconn.RemotePeer() != p { sconn.Close() - return nil, false, fmt.Errorf("Unexpected peer") + return nil, false, fmt.Errorf("unexpected peer") } } else { sconn, err = tpt.SecureOutbound(ctx, insecure, p) diff --git a/ssms_test.go b/ssms_test.go index 7b8b8f3..45470da 100644 --- a/ssms_test.go +++ b/ssms_test.go @@ -63,7 +63,7 @@ func TestNoCommonProto(t *testing.T) { defer a.Close() _, _, err := at.SecureInbound(ctx, a) if err == nil { - t.Fatal("conection should have failed") + t.Error("conection should have failed") } }() @@ -72,7 +72,7 @@ func TestNoCommonProto(t *testing.T) { defer b.Close() _, _, err := bt.SecureOutbound(ctx, b, "peerA") if err == nil { - t.Fatal("connection should have failed") + t.Error("connection should have failed") } }() wg.Wait()