diff --git a/mitmproxy/test/tflow.py b/mitmproxy/test/tflow.py index 588d87051..d00ea395b 100644 --- a/mitmproxy/test/tflow.py +++ b/mitmproxy/test/tflow.py @@ -18,8 +18,8 @@ def ttcpflow(client_conn=True, server_conn=True, messages=True, err=None) -> tcp server_conn = tserver_conn() if messages is True: messages = [ - tcp.TCPMessage(True, b"hello"), - tcp.TCPMessage(False, b"it's me"), + tcp.TCPMessage(True, b"hello", 946681204.2), + tcp.TCPMessage(False, b"it's me", 946681204.5), ] if err is True: err = terr() diff --git a/test/helper_tools/hunt_memory_leaks.py b/test/helper_tools/hunt_memory_leaks.py index 9be5db1c8..6a563af4d 100644 --- a/test/helper_tools/hunt_memory_leaks.py +++ b/test/helper_tools/hunt_memory_leaks.py @@ -45,10 +45,10 @@ def debug2(*_): print("Flow References") print("=======") - #gc.collect() + # gc.collect() objs = tuple(gc.get_objects()) - ignore = {id(objs)} + ignore = {id(objs)} # noqa flows = 0 for i in range(len(objs)): try: @@ -57,8 +57,8 @@ def debug2(*_): continue if is_flow: flows += 1 - #print_refs(objs[i], ignore, set()) - #break + # print_refs(objs[i], ignore, set()) + # break del objs print(f"{flows} flows found.") diff --git a/web/src/js/__tests__/ducks/_tflow.ts b/web/src/js/__tests__/ducks/_tflow.ts index 8a645ed06..4b5288e20 100644 --- a/web/src/js/__tests__/ducks/_tflow.ts +++ b/web/src/js/__tests__/ducks/_tflow.ts @@ -191,7 +191,7 @@ export function TTCPFlow(): Required { "messages_meta": { "contentLength": 12, "count": 2, - "timestamp_last": 1629806221.58518 + "timestamp_last": 946681204.5 }, "modified": false, "server_conn": {