Skip to content

Commit a7d9162

Browse files
nshyoleg-jukovec
authored andcommitted
test: fix compare_box_errors invocation
The function signature is (expected, actual) so expected should be called first. It is significant as the function checks that all payload fields of expected are present in actual. The reverse inclusion is not true generally speaking. Need for tarantool/tarantool#9108
1 parent dcd0934 commit a7d9162

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

box_error_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ func TestErrorTypeInsert(t *testing.T) {
358358
local tuple_err = tuple[2]
359359
assert(tuple_err ~= nil)
360360
361-
return compare_box_errors(err, tuple_err)
361+
return compare_box_errors(tuple_err, err)
362362
`, testcase.ttObj, space, testcase.tuple.pk)
363363

364364
// In fact, compare_box_errors does not check than File and Line
@@ -400,7 +400,7 @@ func TestErrorTypeInsertTyped(t *testing.T) {
400400
local tuple_err = tuple[2]
401401
assert(tuple_err ~= nil)
402402
403-
return compare_box_errors(err, tuple_err)
403+
return compare_box_errors(tuple_err, err)
404404
`, testcase.ttObj, space, testcase.tuple.pk)
405405

406406
// In fact, compare_box_errors does not check than File and Line

0 commit comments

Comments
 (0)