mirror of
https://github.com/webrecorder/pywb.git
synced 2025-03-15 00:03:28 +01:00
recorder test: fix warc/revisit cdx test (don't assume exact order with 14-digit timestamp)
This commit is contained in:
parent
169915ccc5
commit
36862fd9e9
@ -277,7 +277,11 @@ class TestRecorder(LiveServerTests, FakeRedisTests, TempDirTests, BaseTestClass)
|
||||
res = r.zrangebylex('USER:COLL:cdxj', '[org,httpbin)/', '(org,httpbin,')
|
||||
assert len(res) == 2
|
||||
|
||||
cdx = CDXObject(res[1])
|
||||
if b'warc/revisit' in res[0]:
|
||||
cdx = CDXObject(res[0])
|
||||
else:
|
||||
cdx = CDXObject(res[1])
|
||||
|
||||
assert cdx['urlkey'] == 'org,httpbin)/get?foo=bar'
|
||||
assert cdx['mime'] == 'warc/revisit'
|
||||
assert cdx['offset'] == '0'
|
||||
|
Loading…
x
Reference in New Issue
Block a user