aboutsummaryrefslogtreecommitdiffstats
path: root/mitmproxy/test/tutils.py
diff options
context:
space:
mode:
authorMaximilian Hils <git@maximilianhils.com>2018-01-05 16:04:02 +0100
committerMaximilian Hils <git@maximilianhils.com>2018-01-05 16:45:43 +0100
commitc2adcb58f4f5f221d10599db2c97e6cf828157c1 (patch)
tree49b83dde509fab8ecec1d7cd720e8610d3ba1226 /mitmproxy/test/tutils.py
parentc1c1652082f680e7448e44cfbbb536223a100a09 (diff)
downloadmitmproxy-c2adcb58f4f5f221d10599db2c97e6cf828157c1.tar.gz
mitmproxy-c2adcb58f4f5f221d10599db2c97e6cf828157c1.tar.bz2
mitmproxy-c2adcb58f4f5f221d10599db2c97e6cf828157c1.zip
fix test flow timestamps to values that don't overflow in certain timezones
Diffstat (limited to 'mitmproxy/test/tutils.py')
-rw-r--r--mitmproxy/test/tutils.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/mitmproxy/test/tutils.py b/mitmproxy/test/tutils.py
index cd9f3b3f..d5b52bbe 100644
--- a/mitmproxy/test/tutils.py
+++ b/mitmproxy/test/tutils.py
@@ -31,8 +31,8 @@ def treq(**kwargs):
http_version=b"HTTP/1.1",
headers=http.Headers(((b"header", b"qvalue"), (b"content-length", b"7"))),
content=b"content",
- timestamp_start=1,
- timestamp_end=2,
+ timestamp_start=946681200,
+ timestamp_end=946681201,
)
default.update(kwargs)
return http.Request(**default)
@@ -49,8 +49,8 @@ def tresp(**kwargs):
reason=b"OK",
headers=http.Headers(((b"header-response", b"svalue"), (b"content-length", b"7"))),
content=b"message",
- timestamp_start=1,
- timestamp_end=2,
+ timestamp_start=946681202,
+ timestamp_end=946681203,
)
default.update(kwargs)
return http.Response(**default)