Skip to content

Commit a730a18

Browse files
authored
Make the test more robust (#1612)
1 parent 5662ca1 commit a730a18

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/jsonrpc2/types_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ func TestTypes(t *testing.T) {
4747

4848
digest, err := req.Digest()
4949
require.Error(t, err)
50-
require.Equal(t, "error marshaling JSON: json: cannot marshal from Go chan string within \"/params/channel\"", err.Error())
50+
require.Contains(t, err.Error(), "error marshaling JSON: json:")
51+
require.Contains(t, err.Error(), "Go chan string within \"/params/channel\"")
5152
require.Empty(t, digest)
5253
})
5354

0 commit comments

Comments
 (0)