From fc3294cda21a9fb04013aa37c79145d64a21d24d Mon Sep 17 00:00:00 2001 From: Georgy Moshkin <gmoshkin@picodata.io> Date: Mon, 2 Sep 2024 14:35:28 +0300 Subject: [PATCH] test: reduce test_ddl_create_table_unfinished_from_snapshot flakiness --- test/int/test_ddl.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/test/int/test_ddl.py b/test/int/test_ddl.py index fd3b3beaaf..a0c55b6515 100644 --- a/test/int/test_ddl.py +++ b/test/int/test_ddl.py @@ -358,10 +358,13 @@ def test_ddl_create_table_unfinished_from_snapshot(cluster: Cluster): i3.start() i3.wait_online() + def check(instance): + assert instance.call("box.space._space:get", space_id) is not None + assert instance.eval("return box.space._pico_table:get(...).operable", space_id) + # The schema change finalized. for i in cluster.instances: - assert i.call("box.space._space:get", space_id) is not None - assert i.eval("return box.space._pico_table:get(...).operable", space_id) + Retriable(timeout=10).call(check, i) ################################################################################ -- GitLab