From 69085b3988f8213da88a795abf53c9dcc979d19e Mon Sep 17 00:00:00 2001 From: Marco Munizaga Date: Thu, 23 Jan 2025 10:00:40 -0800 Subject: [PATCH] fix test- --- p2p/transport/webtransport/transport_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/p2p/transport/webtransport/transport_test.go b/p2p/transport/webtransport/transport_test.go index f58f6cc009..e723820465 100644 --- a/p2p/transport/webtransport/transport_test.go +++ b/p2p/transport/webtransport/transport_test.go @@ -179,7 +179,7 @@ func TestHashVerification(t *testing.T) { var trErr *quic.TransportError require.ErrorAs(t, err, &trErr) require.Equal(t, quic.TransportErrorCode(0x12a), trErr.ErrorCode) - require.Contains(t, errors.Unwrap(trErr).Error(), "cert hash not found") + require.ErrorContains(t, trErr, "cert hash not found") }) t.Run("fails when adding a wrong hash", func(t *testing.T) {