Trying to improve stability in CI with more sleep()

This commit is contained in:
clement rouault
2024-05-18 23:31:09 +02:00
parent f92204a16f
commit 117ea557f7
2 changed files with 4 additions and 1 deletions
+2 -1
View File
@@ -44,7 +44,8 @@ def generate_pop_and_exit_fixtures(proc_popers, ids=[], dwCreationFlags=DEFAULT_
def pop_and_exit_process(request):
proc_poper = request.param
proc = proc_poper(dwCreationFlags=dwCreationFlags)
time.sleep(0.1) # Give time to the process to load :)
time.sleep(0.2) # Give time to the process to load :)
print("Created {0} ({1}bits) for test".format(proc, proc.bitness))
yield weakref.proxy(proc) # provide the fixture value
try:
proc.exit(0)
+2
View File
@@ -1,6 +1,7 @@
import pytest
import textwrap
import ctypes
import time
import windows
import windows.generated_def as gdef
@@ -97,6 +98,7 @@ def test_self_iat_hook_multithread():
def test_remote_iat_hook(proc32_64):
proc32_64.execute_python("import windows")
proc32_64.execute_python("windows.utils.create_console()")
time.sleep(0.5) # Let all initialisation finish (runtime windows + remote python)
code = """
import windows.generated_def as gdef