Skip to content

Commit 59b6b14

Browse files
committed
Address comments: test with perf counter
1 parent 9b42163 commit 59b6b14

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/aws/services/sqs/test_sqs_backdoor.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -471,15 +471,15 @@ def _send_message():
471471

472472
Timer(25, _send_message).start() # send message asynchronously after 25 seconds
473473

474-
start_t = time.time()
474+
start_t = time.perf_counter()
475475
response = sqs_client.receive_message(
476476
QueueUrl=queue_url,
477477
VisibilityTimeout=30,
478478
MaxNumberOfMessages=MAX_NUMBER_OF_MESSAGES,
479479
WaitTimeSeconds=override_message_wait_time_seconds,
480480
AttributeNames=["All"],
481481
)
482-
assert time.time() - start_t >= 25
482+
assert time.perf_counter() - start_t >= 25
483483

484484
messages = response.get("Messages", [])
485485
assert len(messages) == 10

0 commit comments

Comments
 (0)