Skip to content

Commit 45beba7

Browse files
committed
Reduce test_backend_transaction_age flakiness
Add the timestamp to the application name to reduce the risk of leftover query and connection being present when metrics are collected.
1 parent c2d779a commit 45beba7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

postgres/tests/test_pg_integration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ def test_backend_transaction_age(aggregator, integration_check, pg_instance):
485485

486486
check.run()
487487

488-
app = 'test_backend_transaction_age'
488+
app = f'test_backend_transaction_age_{time.time()}'
489489
conn1 = _get_conn(pg_instance, application_name=app)
490490
cur = conn1.cursor()
491491

0 commit comments

Comments
 (0)