Skip to content

Commit

Permalink
fix flaky test
Browse files Browse the repository at this point in the history
  • Loading branch information
mkjt2 committed Feb 3, 2024
1 parent 3b31482 commit 5c52b54
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions tests/test_everything.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,9 +273,16 @@ def test_identical_response(self):
blackhole_response.json(),
)

# Timing issues - don't check "Date" header in response
lockbox_response_headers = dict(lockbox_response.headers)
blackhole_response_headers = dict(blackhole_response.headers)
if "Date" in lockbox_response_headers:
del lockbox_response_headers["Date"]
if "Date" in blackhole_response_headers:
del blackhole_response_headers["Date"]

self.assertEqual(
dict(lockbox_response.headers),
dict(blackhole_response.headers),
lockbox_response_headers, blackhole_response_headers
)


Expand Down

0 comments on commit 5c52b54

Please sign in to comment.