Skip to content

Commit

Permalink
test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
egor-voynov-aiven committed Mar 25, 2024
1 parent 384d14c commit 7221b2f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/test_webserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -787,13 +787,13 @@ def save_wal_and_dowload_callback(self, pg_wal_dir, drp, wal_name=None, is_valid

# save WAL on FS
if is_valid_wal:
wal = wal_header_for_file(wal_name)
wal_data = wal_header_for_file(wal_name)
else:
another_wal_name = "000000DD00000000000000DD"
assert wal_name != another_wal_name
wal = wal_header_for_file(another_wal_name)
wal_data = wal_header_for_file(another_wal_name)
with open(tmp_path, "wb") as out_file:
out_file.write(wal)
out_file.write(wal_data)

download_result = CallbackEvent(success=True, payload={"target_path": tmp_path}, opaque=wal_name)
pending_op = PendingDownloadOp(
Expand Down

0 comments on commit 7221b2f

Please sign in to comment.