From 660269cce3c050be4de4b60c38a5dcd493589ac6 Mon Sep 17 00:00:00 2001 From: Nikolay Shirokovskiy Date: Wed, 3 Apr 2024 16:49:45 +0300 Subject: [PATCH] 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 https://github.com/tarantool/tarantool/issues/9108 --- box_error_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/box_error_test.go b/box_error_test.go index c48303bba..43f3c6956 100644 --- a/box_error_test.go +++ b/box_error_test.go @@ -358,7 +358,7 @@ func TestErrorTypeInsert(t *testing.T) { local tuple_err = tuple[2] assert(tuple_err ~= nil) - return compare_box_errors(err, tuple_err) + return compare_box_errors(tuple_err, err) `, testcase.ttObj, space, testcase.tuple.pk) // In fact, compare_box_errors does not check than File and Line @@ -400,7 +400,7 @@ func TestErrorTypeInsertTyped(t *testing.T) { local tuple_err = tuple[2] assert(tuple_err ~= nil) - return compare_box_errors(err, tuple_err) + return compare_box_errors(tuple_err, err) `, testcase.ttObj, space, testcase.tuple.pk) // In fact, compare_box_errors does not check than File and Line