Skip to content

Commit 9988acd

Browse files
authored
[internal] Improve logs when test_table_migration_job_refreshes_migration_status fails (#1766)
1 parent b580711 commit 9988acd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/integration/hive_metastore/test_workflows.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ def test_table_migration_job_refreshes_migration_status(ws, installation_ctx, pr
3131
migration_status_query = f"SELECT * FROM {ctx.config.inventory_database}.migration_status"
3232
migration_statuses = list(ctx.sql_backend.fetch(migration_status_query))
3333

34-
assert len(migration_statuses) > 0, "No migration statuses found"
34+
if len(migration_statuses) == 0:
35+
ctx.deployed_workflows.relay_logs(workflow)
36+
assert False, "No migration statuses found"
3537

3638
asserts = []
3739
for table in tables.values():

0 commit comments

Comments
 (0)