diff --git a/tests/conftest.py b/tests/conftest.py index 8fdfe33..e429b23 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -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) diff --git a/tests/test_hook.py b/tests/test_hook.py index 4aada2c..e8600de 100644 --- a/tests/test_hook.py +++ b/tests/test_hook.py @@ -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