Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ def changed_build() -> dict[str, list[str]]:
assert first.index(_SYNCED) < first.index(_PLANNED), (
"a publication plans what changed once its sync completes, not from the old copy"
)
assert changed_build() == test_case.expected_published
assert changed_build() == test_case.expected_published, log.read_text()

_ = wait_for_location_work(api, request_warehouse_sync(control), location, log)
_ = wait_for_log_count(location, log, _SYNCED, 2)
Expand All @@ -439,8 +439,9 @@ def changed_build() -> dict[str, list[str]]:
assert rebuilt.returncode == 0, rebuilt.stderr
_ = wait_for_location_work(api, request_warehouse_sync(control), location, log)
_ = wait_for_log_count(location, log, _PLANNED, 2)
# The log shows which sync the second plan followed and what each sync read.
assert changed_build() == test_case.expected_rebuilt, (
"a sync that mirrored the new build plans again"
f"a sync that mirrored the new build plans again\n{log.read_text()}"
)


Expand Down
Loading