Skip to content

Commit 66d8b74

Browse files
committed
add pytest timeout
1 parent 0bedc08 commit 66d8b74

File tree

4 files changed

+20
-3
lines changed

4 files changed

+20
-3
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
@@ -66,6 +66,7 @@ opentelemetry-exporter-otlp = "^1.22.0"
6666
opentelemetry-exporter-otlp-proto-grpc = "^1.22.0"
6767
opentelemetry-sdk-extension-aws = "^2.0.1"
6868
pytest-asyncio = "^0.21.0"
69+
pytest-timeout = "^2.3.1"
6970

7071
[tool.isort]
7172
sections = "FUTURE,STDLIB,THIRDPARTY,FIRSTPARTY,LOCALFOLDER"

tests/integration/container/tortoise/test_tortoise_relations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ async def setup_tortoise_relationships(self, conn_utils):
4747
"""Setup Tortoise with relationship models."""
4848
db_url = conn_utils.get_aws_tortoise_url(
4949
TestEnvironment.get_current().get_engine(),
50-
plugins="aurora_connection_tracker",
50+
plugins="none",
5151
)
5252

5353
config = {

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", "test_tortoise",
76-
"-p", "no:logging", "--capture=tee-sys", testFolder);
76+
"--timeout=420", "--timeout-method=thread", "--tb=long", "--capture=tee-sys", "--maxfail=2",
77+
"-p", "no:logging", testFolder);
7778

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

0 commit comments

Comments
 (0)