Skip to content

Commit 4bb55cf

Browse files
chore: add timeout to integ tests and print stacktrace if timed out (#1062)
1 parent 0373eee commit 4bb55cf

File tree

3 files changed

+19
-2
lines changed

3 files changed

+19
-2
lines changed

poetry.lock

Lines changed: 16 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ mysql-connector-python = "^9.5.0"
6363
opentelemetry-exporter-otlp = "^1.22.0"
6464
opentelemetry-exporter-otlp-proto-grpc = "^1.22.0"
6565
opentelemetry-sdk-extension-aws = "^2.0.1"
66+
pytest-timeout = "^2.3.1"
6667

6768
[tool.isort]
6869
sections = "FUTURE,STDLIB,THIRDPARTY,FIRSTPARTY,LOCALFOLDER"

tests/integration/host/src/test/java/integration/util/ContainerHelper.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,8 @@ public void runTest(GenericContainer<?> container, String testFolder, String pri
7373
"--html=./tests/integration/container/reports/%s.html", primaryInfo);
7474
Long exitCode = execInContainer(container, consumer,
7575
"poetry", "run", "pytest", "-vvvvv", reportSetting, "-k", config.testFilter,
76-
"-p", "no:logging", "--capture=tee-sys", testFolder);
76+
"--timeout=600", "--tb=long", "--timeout-method=thread", "-p", "no:logging",
77+
"--capture=tee-sys",testFolder);
7778

7879
System.out.println("==== Container console feed ==== <<<<");
7980
assertEquals(0, exitCode, "Some tests failed.");

0 commit comments

Comments
 (0)