opnsense-ports/devel/ice/files/patch-python-test-Ice-timeout-AllTests.py
Franco Fichtner f859a25161 */*: sync with upstream
Taken from: FreeBSD
2022-01-14 14:30:47 +01:00

14 lines
473 B
Python

--- python/test/Ice/timeout/AllTests.py.orig 2019-08-12 19:54:18 UTC
+++ python/test/Ice/timeout/AllTests.py
@@ -249,9 +249,9 @@ def allTests(communicator):
comm = Ice.initialize(initData)
connection = comm.stringToProxy(sref).ice_getConnection();
timeout.holdAdapter(800);
- now = time.clock();
+ now = time.perf_counter();
comm.destroy();
- test((time.clock() - now) < 0.7);
+ test((time.perf_counter() - now) < 0.7);
print("ok")