Skip to content

Commit a7d4ea7

Browse files
committed
Fix test
1 parent d83f2de commit a7d4ea7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test_mysql_ch_replicator.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1292,6 +1292,9 @@ def test_percona_migration(monkeypatch):
12921292
mysql.execute(
12931293
f"DROP TABLE IF EXISTS `{TEST_DB_NAME}`.`_{TEST_TABLE_NAME}_old`;")
12941294

1295+
# Wait for table to be recreated in ClickHouse after rename
1296+
assert_wait(lambda: TEST_TABLE_NAME in ch.get_tables())
1297+
12951298
mysql.execute(
12961299
f"INSERT INTO `{TEST_TABLE_NAME}` (id, c1) VALUES (43, 1)",
12971300
commit=True,
@@ -1604,7 +1607,7 @@ def test_enum_conversion():
16041607

16051608
# Status_empty should now keep 0s as 0s instead of converting to first enum value
16061609
assert results[1][2] is None # NULL should remain NULL
1607-
assert results[2][2] == 0 # Empty string should be stored as 0, not converted to 'yes'
1610+
assert results[2][2] == 0 # Empty string should be stored as 0, not converted to first enum value
16081611

16091612
run_all_runner.stop()
16101613
assert_wait(lambda: 'stopping db_replicator' in read_logs(TEST_DB_NAME))

0 commit comments

Comments
 (0)