Skip to content

Commit ebf8f47

Browse files
authored
Fix: Relax the error regex in state sync tests (#4512)
1 parent 2343309 commit ebf8f47

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/core/state_sync/test_state_sync.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -949,7 +949,7 @@ def test_promote_snapshots_no_gaps(state_sync: EngineAdapterStateSync, make_snap
949949
state_sync.add_interval(new_snapshot_missing_interval, "2022-01-01", "2022-01-02")
950950
with pytest.raises(
951951
SQLMeshError,
952-
match=r'Detected missing intervals for model "a", interrupting your current plan. Please re-apply your plan to resolve this error.',
952+
match=r".*Detected missing intervals for model .*, interrupting your current plan. Please re-apply your plan to resolve this error.*",
953953
):
954954
promote_snapshots(state_sync, [new_snapshot_missing_interval], "prod", no_gaps=True)
955955

@@ -1061,7 +1061,7 @@ def test_start_date_gap(state_sync: EngineAdapterStateSync, make_snapshot: t.Cal
10611061
state_sync.add_interval(snapshot, "2022-01-03", "2022-01-04")
10621062
with pytest.raises(
10631063
SQLMeshError,
1064-
match=r'Detected missing intervals for model "a", interrupting your current plan. Please re-apply your plan to resolve this error.',
1064+
match=r".*Detected missing intervals for model .*, interrupting your current plan. Please re-apply your plan to resolve this error.*",
10651065
):
10661066
promote_snapshots(state_sync, [snapshot], "prod", no_gaps=True)
10671067

0 commit comments

Comments
 (0)