Skip to content

Commit

Permalink
Is the pg_sleep by itself the problem?
Browse files Browse the repository at this point in the history
  • Loading branch information
basepi committed Jun 30, 2021
1 parent 5b8c341 commit ff2b912
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/instrumentation/asyncio_tests/aiopg_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def rollback():

async def test_select_sleep(instrument, cursor, elasticapm_client):
elasticapm_client.begin_transaction("test")
await cursor.execute("SELECT pg_sleep(0.1);")
await cursor.execute("SELECT pg_sleep(0.1); SELECT * FROM test")
elasticapm_client.end_transaction("test", "OK")

transaction = elasticapm_client.events[constants.TRANSACTION][0]
Expand Down

0 comments on commit ff2b912

Please sign in to comment.