mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-17 20:02:05 +00:00
Fixed some typos in test_ttl_move
test.
This commit is contained in:
parent
3250955b07
commit
ae4b2b4ace
@ -71,7 +71,7 @@ def test_inserts_to_disk_work(started_cluster, name, engine, positive):
|
||||
used_disks = get_used_disks_for_table(node1, name)
|
||||
assert set(used_disks) == {"external" if positive else "jbod1"}
|
||||
|
||||
assert node1.query("SELECT count() FROM {}".format(name=name)).strip() == "10"
|
||||
assert node1.query("SELECT count() FROM {name}".format(name=name)).strip() == "10"
|
||||
|
||||
finally:
|
||||
node1.query("DROP TABLE IF EXISTS {}".format(name))
|
||||
@ -107,7 +107,7 @@ def test_moves_to_disk_work(started_cluster, name, engine, positive):
|
||||
used_disks = get_used_disks_for_table(node1, name)
|
||||
assert set(used_disks) == {"external" if positive else "jbod1"}
|
||||
|
||||
assert node1.query("SELECT count() FROM {}".format(name=name)).strip() == "10"
|
||||
assert node1.query("SELECT count() FROM {name}".format(name=name)).strip() == "10"
|
||||
|
||||
finally:
|
||||
node1.query("DROP TABLE IF EXISTS {}".format(name))
|
||||
@ -145,7 +145,7 @@ def test_moves_to_volume_work(started_cluster, name, engine):
|
||||
used_disks = get_used_disks_for_table(node1, name)
|
||||
assert set(used_disks) == {"external"}
|
||||
|
||||
assert node1.query("SELECT count() FROM {}".format(name=name)).strip() == "20"
|
||||
assert node1.query("SELECT count() FROM {name}".format(name=name)).strip() == "20"
|
||||
|
||||
finally:
|
||||
node1.query("DROP TABLE IF EXISTS {}".format(name))
|
||||
@ -179,7 +179,7 @@ def test_inserts_to_volume_work(started_cluster, name, engine):
|
||||
used_disks = get_used_disks_for_table(node1, name)
|
||||
assert set(used_disks) == {"external"}
|
||||
|
||||
assert node1.query("SELECT count() FROM {}".format(name=name)).strip() == "20"
|
||||
assert node1.query("SELECT count() FROM {name}".format(name=name)).strip() == "20"
|
||||
|
||||
finally:
|
||||
node1.query("DROP TABLE IF EXISTS {}".format(name))
|
||||
@ -233,7 +233,7 @@ def test_moves_to_disk_eventually_work(started_cluster, name, engine):
|
||||
used_disks = get_used_disks_for_table(node1, name)
|
||||
assert set(used_disks) == {"jbod2"}
|
||||
|
||||
assert node1.query("SELECT count() FROM {}".format(name=name)).strip() == "10"
|
||||
assert node1.query("SELECT count() FROM {name}".format(name=name)).strip() == "10"
|
||||
|
||||
finally:
|
||||
node1.query("DROP TABLE IF EXISTS {}".format(name_temp))
|
||||
@ -281,7 +281,7 @@ def test_merges_to_disk_work(started_cluster, name, engine, positive):
|
||||
assert set(used_disks) == {"external" if positive else "jbod1"}
|
||||
assert "1" == node1.query("SELECT count() FROM system.parts WHERE table = '{}' AND active = 1".format(name)).strip()
|
||||
|
||||
assert node1.query("SELECT count() FROM {}".format(name=name)).strip() == "16"
|
||||
assert node1.query("SELECT count() FROM {name}".format(name=name)).strip() == "16"
|
||||
|
||||
finally:
|
||||
node1.query("DROP TABLE IF EXISTS {}".format(name))
|
||||
@ -341,7 +341,7 @@ def test_merges_to_full_disk_work(started_cluster, name, engine):
|
||||
assert set(used_disks) == {"jbod1"} # Merged to the same disk against the rule.
|
||||
assert "1" == node1.query("SELECT count() FROM system.parts WHERE table = '{}' AND active = 1".format(name)).strip()
|
||||
|
||||
assert node1.query("SELECT count() FROM {}".format(name=name)).strip() == "16"
|
||||
assert node1.query("SELECT count() FROM {name}".format(name=name)).strip() == "16"
|
||||
|
||||
finally:
|
||||
node1.query("DROP TABLE IF EXISTS {}".format(name_temp))
|
||||
@ -382,7 +382,7 @@ def test_moves_after_merges_work(started_cluster, name, engine, positive):
|
||||
used_disks = get_used_disks_for_table(node1, name)
|
||||
assert set(used_disks) == {"external" if positive else "jbod1"}
|
||||
|
||||
assert node1.query("SELECT count() FROM {}".format(name=name)).strip() == "16"
|
||||
assert node1.query("SELECT count() FROM {name}".format(name=name)).strip() == "16"
|
||||
|
||||
finally:
|
||||
node1.query("DROP TABLE IF EXISTS {}".format(name))
|
||||
|
Loading…
Reference in New Issue
Block a user