mirror of
https://github.com/frida/frida-python
synced 2026-06-08 14:16:17 +00:00
Add workaround to improve test-suite reliability
Not all of our injectors handle injection into processes that haven't finished initializing, so for now delay a little before attaching.
This commit is contained in:
@@ -20,6 +20,8 @@ class TestRpc(unittest.TestCase):
|
||||
def setUp(cls):
|
||||
system = platform.system()
|
||||
cls.target = subprocess.Popen([target_program], stdin=subprocess.PIPE)
|
||||
# TODO: improve injectors to handle injection into a process that hasn't yet finished initializing
|
||||
time.sleep(0.05)
|
||||
cls.session = frida.attach(cls.target.pid)
|
||||
|
||||
@classmethod
|
||||
|
||||
Reference in New Issue
Block a user