test: correct jwt parse time test
This commit is contained in:
committed by
Steve Chavez
parent
36b6a2c86b
commit
e3041fc4a0
+3
-2
@@ -1453,8 +1453,9 @@ def test_jwt_cache_server_timing(defaultenv):
|
||||
first_dur = parse_server_timings_header(first.headers["Server-Timing"])["jwt"]
|
||||
second_dur = parse_server_timings_header(second.headers["Server-Timing"])["jwt"]
|
||||
|
||||
assert first_dur >= 0
|
||||
assert second_dur >= 0
|
||||
# with jwt caching the parse time of second request with the same token
|
||||
# should be at least as fast as the first one
|
||||
assert second_dur <= first_dur
|
||||
|
||||
|
||||
def test_jwt_cache_without_server_timing(defaultenv):
|
||||
|
||||
Reference in New Issue
Block a user