Skip to content

Commit

Permalink
Fix test_system_merges after optimization for "x OR 1" conditions
Browse files Browse the repository at this point in the history
After the previous patch "x OR 1" will not execute "x", and because of
this test_system_merges::test_mutation_simple started to fail since
"sleep" function did not executed.

Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
  • Loading branch information
azat committed Oct 16, 2023
1 parent 96f2a46 commit b0fbd79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/integration/test_system_merges/test.py
Expand Up @@ -188,7 +188,7 @@ def test_mutation_simple(started_cluster, replicated):
# ALTER will sleep for 9s
def alter():
node1.query(
f"ALTER TABLE {name} UPDATE a = 42 WHERE sleep(9) OR 1",
f"ALTER TABLE {name} UPDATE a = 42 WHERE sleep(9) = 0",
settings=settings,
)

Expand Down

0 comments on commit b0fbd79

Please sign in to comment.