trace: make test timeout after 2min

Before this commit, the test was hanging forever when
run on a Windows host. This should resolve that issue.

Signed-off-by: Daniel Kutik <daniel.kutik@lavawerk.com>
Change-Id: Id9ea6d54926b797db3d2978a2ae2930088201eec
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/353125
Reviewed-by: Mike Frysinger <vapier@google.com>
This commit is contained in:
Daniel Kutik 2022-11-25 17:15:39 +01:00 committed by Mike Frysinger
parent 4364a79088
commit eda6b1ead7

View File

@ -369,7 +369,7 @@ class EventLogTestCase(unittest.TestCase):
server_thread.start() server_thread.start()
with server_ready: with server_ready:
server_ready.wait() server_ready.wait(timeout=120)
self._event_log_module.StartEvent() self._event_log_module.StartEvent()
path = self._event_log_module.Write(path=f'af_unix:{socket_path}') path = self._event_log_module.Write(path=f'af_unix:{socket_path}')