flakytest.dev anze3db flakytest
Tests / ft/tests.py

TestDatabaseConnectionRetries::test_gives_up_when_postgres_stays_down

First seen 1 week, 1 day ago in cb18ed3
No profiled runs of this test in the last 7 days. Run pytest --flakytest-profile to see where its time goes.

Where the time goes

Latest run in ci:github-actions:test, 1 week, 1 day ago · open run
Show pytest frames
call2 ms78.9%
TestDatabaseConnectionRetries.test_gives_up_when_postgres_stays_downft/tests.py:273 with self.assertLogs("ft.db.postgresql.base", "WARNING"), self.assertRaises(psycopg.OperationalError):0.98 ms39.5%
_find_and_load<frozen importlib._bootstrap>:13530.98 ms39.5%
_find_and_load_unlocked<frozen importlib._bootstrap>:12490.98 ms39.5%
_load_unlocked<frozen importlib._bootstrap>:8570.98 ms39.5%
_LoaderBasics.exec_module<frozen importlib._bootstrap_external>:7470.98 ms39.5%
SourceLoader.get_code<frozen importlib._bootstrap_external>:8810.98 ms39.5%
SourceLoader.source_to_code<frozen importlib._bootstrap_external>:8100.98 ms39.5%
_call_with_frames_removed<frozen importlib._bootstrap>:4910.98 ms39.5%
Estimated from 2 samples; phase durations are exact. Frames from pytest and pluggy are hidden .

Hot lines in your code

ft/tests.py:273
with self.assertLogs("ft.db.postgresql.base", "WARNING"), self.assertRaises(psycopg.OperationalError):
TestDatabaseConnectionRetries.test_gives_up_when_postgres_stays_down · Imports
0.98 ms

Fixtures

Exact setup time
_dj_autoclear_mailbox function 0.03 ms
_django_db_marker function 0.03 ms
_template_string_if_invalid_marker function 0.03 ms
_live_server_helper function 0.02 ms
_django_set_urlconf function 0.02 ms
_django_clear_site_cache function 0.02 ms
monkeypatch function 0.01 ms

Biggest pieces of work

call pytest internals 0.98 ms
call test body
ft/tests.py:273
0.98 ms

Reliability

1 result · 0 CI failures · 0 local failures

This test hasn't failed recently.

History

Latest 1 result, oldest first in the strip
When Environment Outcome Duration Commit
1 week, 1 day ago CI github-actions:test passed 2 ms cb18ed3 main Profile