From 50d013231ca494056e8e7e8c26ff1fa3dc917549 Mon Sep 17 00:00:00 2001 From: taiyang-li <654010905@qq.com> Date: Sat, 20 Feb 2021 11:33:49 +0800 Subject: [PATCH] fix test_reloading_storage_configuration --- .../test_reloading_storage_configuration/test.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tests/integration/test_reloading_storage_configuration/test.py b/tests/integration/test_reloading_storage_configuration/test.py index 485069e1808..7fa37d0909c 100644 --- a/tests/integration/test_reloading_storage_configuration/test.py +++ b/tests/integration/test_reloading_storage_configuration/test.py @@ -173,16 +173,14 @@ def test_update_disk(started_cluster): SETTINGS storage_policy='jbods_with_external' """.format(name=name, engine=engine)) - assert node1.query( "SELECT path, keep_free_space FROM system.disks where name = '%s'" % (name)) == TSV([ + assert node1.query("SELECT path, keep_free_space FROM system.disks where name = 'jbod2'") == TSV([ ["/jbod2/", "10485760"]]) update_disk(node1, "jbod2", "/jbod2/", "20971520") node1.query("SYSTEM RELOAD CONFIG") - assert node1.query( - "SELECT path, keep_free_space FROM system.disks where name = '%s'" % (name)) == TSV([ + assert node1.query("SELECT path, keep_free_space FROM system.disks where name = 'jbod2'") == TSV([ ["/jbod2/", "20971520"]]) - finally: try: node1.query("DROP TABLE IF EXISTS {}".format(name))