Skip to content

Commit 8f67230

Browse files
committed
test: fix "type does not match" error for Tarantool 2.8 compatibility
After tarantool/tarantool#5899 error message was changed. This patch makes tests compatible with Tarantool 2.8.
1 parent a15e774 commit 8f67230

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

test/integration/updated_shema_test.lua

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ pgroup:add('test_insert_field_type_changed', function(g)
432432

433433
t.assert_equals(obj, nil)
434434
t.assert_is_not(err, nil)
435-
t.assert_str_contains(err.err, "Tuple field 3 type does not match one required by operation: expected string")
435+
t.assert_str_contains(err.err, "type does not match one required by operation: expected string")
436436

437437
-- set value type to unsigned
438438
helpers.call_on_servers(g.cluster, {'s1-master', 's2-master'}, function(server)
@@ -463,7 +463,7 @@ pgroup:add('test_replace_field_type_changed', function(g)
463463

464464
t.assert_equals(obj, nil)
465465
t.assert_is_not(err, nil)
466-
t.assert_str_contains(err.err, "Tuple field 3 type does not match one required by operation: expected string")
466+
t.assert_str_contains(err.err, "type does not match one required by operation: expected string")
467467

468468
-- set value type to unsigned
469469
helpers.call_on_servers(g.cluster, {'s1-master', 's2-master'}, function(server)
@@ -494,7 +494,7 @@ pgroup:add('test_upsert_field_type_changed', function(g)
494494

495495
t.assert_equals(obj, nil)
496496
t.assert_is_not(err, nil)
497-
t.assert_str_contains(err.err, "Tuple field 3 type does not match one required by operation: expected string")
497+
t.assert_str_contains(err.err, "type does not match one required by operation: expected string")
498498

499499
-- set value type to unsigned
500500
helpers.call_on_servers(g.cluster, {'s1-master', 's2-master'}, function(server)
@@ -631,7 +631,7 @@ pgroup:add('test_insert_object_field_type_changed', function(g)
631631

632632
t.assert_equals(obj, nil)
633633
t.assert_is_not(err, nil)
634-
t.assert_str_contains(err.err, "Tuple field 3 type does not match one required by operation: expected string")
634+
t.assert_str_contains(err.err, "type does not match one required by operation: expected string")
635635

636636
-- set value type to unsigned
637637
helpers.call_on_servers(g.cluster, {'s1-master', 's2-master'}, function(server)
@@ -662,7 +662,7 @@ pgroup:add('test_replace_object_field_type_changed', function(g)
662662

663663
t.assert_equals(obj, nil)
664664
t.assert_is_not(err, nil)
665-
t.assert_str_contains(err.err, "Tuple field 3 type does not match one required by operation: expected string")
665+
t.assert_str_contains(err.err, "type does not match one required by operation: expected string")
666666

667667
-- set value type to unsigned
668668
helpers.call_on_servers(g.cluster, {'s1-master', 's2-master'}, function(server)
@@ -693,7 +693,7 @@ pgroup:add('test_upsert_object_field_type_changed', function(g)
693693

694694
t.assert_equals(obj, nil)
695695
t.assert_is_not(err, nil)
696-
t.assert_str_contains(err.err, "Tuple field 3 type does not match one required by operation: expected string")
696+
t.assert_str_contains(err.err, "type does not match one required by operation: expected string")
697697

698698
-- set value type to unsigned
699699
helpers.call_on_servers(g.cluster, {'s1-master', 's2-master'}, function(server)

0 commit comments

Comments
 (0)