Skip to content

Commit fdbae9b

Browse files
authored
Fix flaky tarantool_upgrade_test (#1536)
The replication is asynchronous. Select operations should be retried in order to avoid test failures.
1 parent 3a65806 commit fdbae9b

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

test/upgrade/tarantool_upgrade_test.lua

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,10 @@ function g.test_upgrade()
8282
local tuple = {1, 0.1, 'str', {a = 'a'}, {1, 2}}
8383
storage_1.space.test:insert(tuple)
8484

85-
local storage2_tuple = storage_2:eval('return box.space.test:get({1})')
86-
t.assert_equals(storage2_tuple, tuple)
85+
helpers.retrying({}, function()
86+
t.assert_equals(
87+
storage_2:eval('return box.space.test:get({1})'),
88+
tuple
89+
)
90+
end)
8791
end

0 commit comments

Comments
 (0)