From 131dd9d5cfdda8c355c1c5866872fe468be3c0c8 Mon Sep 17 00:00:00 2001 From: Georgy Moshkin <gmoshkin@picodata.io> Date: Tue, 9 Jul 2024 16:56:19 +0300 Subject: [PATCH] test: use more sql in test_ddl_drop_table_partial_failure --- test/int/test_ddl.py | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/test/int/test_ddl.py b/test/int/test_ddl.py index 870bcf03d9..72676dc4fd 100644 --- a/test/int/test_ddl.py +++ b/test/int/test_ddl.py @@ -1011,18 +1011,12 @@ def test_ddl_drop_table_partial_failure(cluster: Cluster): assert i3.call("box.space.trinkets:get", 9) == [9] # But the space is marked not operable. - assert not i1.eval( - "return box.space._pico_table.index._pico_table_name:get(...).operable", - table_name, - ) - assert not i2.eval( - "return box.space._pico_table.index._pico_table_name:get(...).operable", - table_name, - ) - assert not i3.eval( - "return box.space._pico_table.index._pico_table_name:get(...).operable", - table_name, - ) + rows = i1.sql('select "operable" from "_pico_table" where "name" = ?', table_name) + assert rows == [[False]] + rows = i2.sql('select "operable" from "_pico_table" where "name" = ?', table_name) + assert rows == [[False]] + rows = i3.sql('select "operable" from "_pico_table" where "name" = ?', table_name) + assert rows == [[False]] # TODO: test manual ddl abort -- GitLab