Skip to content

Commit

Permalink
Pop Age if it is there, otherwise ignore it
Browse files Browse the repository at this point in the history
  • Loading branch information
sigmavirus24 committed Apr 7, 2016
1 parent f67b2cb commit dbfd3d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/integration/test_record_modes.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ def test_replays_response_from_cassette(self):
assert r1.status_code == 200
r0_headers = r0.headers.copy()
r0_headers.pop('Date')
r0_headers.pop('Age')
r0_headers.pop('Age', None)
r1_headers = r1.headers.copy()
r1_headers.pop('Date')
r1_headers.pop('Age')
r1_headers.pop('Age', None)
# NOTE(sigmavirus24): This fails if the second request is
# technically a second later. Ignoring the Date headers allows
# this test to succeed.
Expand Down

0 comments on commit dbfd3d9

Please sign in to comment.