Skip to content

Commit 48932a9

Browse files
committed
Fix notification test path handling
1 parent 95dafb0 commit 48932a9

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

tests/test_rebalance_service.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,11 @@ def disconnect(self):
233233
)
234234

235235
assert result == "OK - heartbeat"
236-
payload_path = output_root / "2026-04-01" / "reconciliation.json"
237-
assert payload_path.exists()
236+
candidate_paths = [
237+
output_root,
238+
output_root / "2026-04-01" / "reconciliation.json",
239+
]
240+
payload_path = next((path for path in candidate_paths if path.is_file()), None)
241+
assert payload_path is not None
238242
payload = json.loads(payload_path.read_text(encoding="utf-8"))
239243
assert payload["no_op_reason"] == "outside_execution_window"

0 commit comments

Comments
 (0)