Skip to content

Commit

Permalink
test: update WebTransport TestHashVerification to handle updated quic…
Browse files Browse the repository at this point in the history
… error type
  • Loading branch information
aschmahmann committed Aug 17, 2023
1 parent e633568 commit fcd3351
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion p2p/transport/webtransport/transport_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,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, trErr.ErrorMessage, "cert hash not found")
require.Contains(t, trErr.Error(), "cert hash not found")
})

t.Run("fails when adding a wrong hash", func(t *testing.T) {
Expand Down

0 comments on commit fcd3351

Please sign in to comment.