Skip to content

Commit 24f3774

Browse files
committed
test: use coverage instead of equality to test error payload
We are going to add missing 'user' payload field for ACCESS_DENIED error which will break current tests. Let fix tests to allow adding new payload fields for errors. Need for tarantool/tarantool#9108
1 parent f0ffd4c commit 24f3774

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test_helpers/utils.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ func CheckEqualBoxErrors(t *testing.T, expected tarantool.BoxError, actual taran
244244
require.Equal(t, expected.Msg, actual.Msg)
245245
require.Equal(t, expected.Errno, actual.Errno)
246246
require.Equal(t, expected.Code, actual.Code)
247-
require.Equal(t, expected.Fields, actual.Fields)
247+
require.Subset(t, actual.Fields, expected.Fields)
248248

249249
if expected.Prev != nil {
250250
// Stack depth is the same

0 commit comments

Comments
 (0)