42 lines
1.2 KiB
Diff
42 lines
1.2 KiB
Diff
From c6af7be6edb6ee7ecba9acdda4f00dd1026ce3d8 Mon Sep 17 00:00:00 2001
|
|
From: Andreas Cadhalpun <andreas.cadhalpun@googlemail.com>
|
|
Date: Fri, 17 Jul 2020 15:46:11 +0800
|
|
Subject: [PATCH] stall some loops in test_gateway a little bit to prevent test
|
|
failure and build break which occurs sometimes on this.
|
|
|
|
---
|
|
execnet-1.5.0/testing/test_gateway.py | 3 +++
|
|
1 file changed, 3 insertions(+)
|
|
|
|
diff --git a/testing/test_gateway.py b/testing/test_gateway.py
|
|
index 6f0f62b..e99a53a 100644
|
|
--- a/execnet-1.5.0/testing/test_gateway.py
|
|
+++ b/execnet-1.5.0/testing/test_gateway.py
|
|
@@ -2,6 +2,7 @@
|
|
mostly functional tests of gateways.
|
|
"""
|
|
import os
|
|
+import time
|
|
import py
|
|
import pytest
|
|
import sys
|
|
@@ -90,6 +91,7 @@ class TestBasicGateway:
|
|
status = gw.remote_status()
|
|
if status.numexecuting == 0:
|
|
break
|
|
+ time.sleep(0.1)
|
|
else:
|
|
pytest.fail("did not get correct remote status")
|
|
# race condition
|
|
@@ -364,6 +366,7 @@ class TestThreads:
|
|
rstatus = gw.remote_status()
|
|
if rstatus.numexecuting == 0:
|
|
return
|
|
+ time.sleep(0.1)
|
|
assert 0, "numexecuting didn't drop to zero"
|
|
|
|
|
|
--
|
|
2.23.0
|
|
|