Merge pull request #10346 from vitlibar/fix-flaky-test-settings-constraints-distributed

Fix flaky test test_settings_constraints_distributed.
This commit is contained in:
alexey-milovidov 2020-04-18 14:49:06 +03:00 committed by GitHub
commit 27585f59e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -103,4 +103,5 @@ def test_insert_clamps_settings():
distributed.query("INSERT INTO proxy VALUES (toDate('2020-02-20'), 2, 2)")
distributed.query("INSERT INTO proxy VALUES (toDate('2020-02-21'), 2, 2)", settings={"max_memory_usage": 5000000})
assert distributed.query("SELECT COUNT() FROM proxy") == "4\n"
distributed.query("SYSTEM FLUSH DISTRIBUTED proxy")
assert_eq_with_retry(distributed, "SELECT COUNT() FROM proxy", "4")