Skip to content

Commit

Permalink
verify correct files are compressed and uploaded in test_startup_walk…
Browse files Browse the repository at this point in the history
…_skip_compression_if_already_compressed
  • Loading branch information
kathia-barahona committed Jul 4, 2023
1 parent db82d1a commit 60d6bf6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/test_pghoard.py
Original file line number Diff line number Diff line change
Expand Up @@ -806,8 +806,12 @@ def test_startup_walk_skip_compression_if_already_compressed(

# only one file should be added for compression (invalid compressed one)
assert self.pghoard.compression_queue.qsize() == 1
compression_event = self.pghoard.compression_queue.get()
assert compression_event.file_path.name == invalid_compressed_file_name

assert self.pghoard.transfer_queue.qsize() == 1
upload_event = self.pghoard.transfer_queue.get()
assert upload_event.file_path.name == file_name

if file_type is FileType.Wal:
assert self.pghoard.wal_file_deletion_queue.qsize() == 1
Expand Down

0 comments on commit 60d6bf6

Please sign in to comment.