Skip to content

Commit d89a33f

Browse files
committed
test_crashpad_feedback_handler: wait
1 parent 7e667a7 commit d89a33f

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

tests/test_integration_crashpad.py

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -632,15 +632,17 @@ def test_crashpad_feedback_handler(cmake, httpserver):
632632

633633
env = dict(os.environ, SENTRY_DSN=make_dsn(httpserver))
634634
httpserver.expect_oneshot_request("/api/123456/minidump/").respond_with_data("OK")
635-
httpserver.expect_request("/api/123456/envelope/").respond_with_data("OK")
635+
httpserver.expect_oneshot_request("/api/123456/envelope/").respond_with_data("OK")
636636

637-
child = run(
638-
tmp_path,
639-
"sentry_example",
640-
["log", "install-feedback-handler", "crash"],
641-
env=env,
642-
)
643-
assert child.returncode # well, it's a crash after all
637+
with httpserver.wait(timeout=10) as waiting:
638+
child = run(
639+
tmp_path,
640+
"sentry_example",
641+
["log", "install-feedback-handler", "crash"],
642+
env=env,
643+
)
644+
assert child.returncode # well, it's a crash after all
645+
assert waiting.result
644646

645647
assert len(httpserver.log) == 2
646648
outputs = (httpserver.log[0][0], httpserver.log[1][0])

0 commit comments

Comments
 (0)