Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increase receive timeout for integration test #75

Merged

Conversation

edennis
Copy link
Contributor

@edennis edennis commented May 16, 2023

While running the tests I kept running into this error:

10:25:05.009 [warning] ExAws: HTTP ERROR: :closed for URL: "http://localhost:49362/" ATTEMPT: 1


  1) test consume messages from SQS and ack it (BroadwaySQS.BroadwaySQS.IntegrationTest)
     test/broadway_sqs/integration_test.exs:111
     Assertion failed, no matching message after 100ms
     The process mailbox is empty.
     code: assert_receive {:message_handled, "hello world", %{receipt_handle: "receipt-handle-1"}}
     stacktrace:
       test/broadway_sqs/integration_test.exs:142: (test)


Finished in 5.8 seconds (0.00s async, 5.8s sync)
40 tests, 1 failure

Randomized with seed 105000

I increased the timeout for the first assert_receive/3 which provides better stability. I also fixed a typo in the test module name.

@edennis edennis changed the title Increase timeout for integration test Increase receive timeout for integration test May 16, 2023
@josevalim josevalim merged commit 84052c6 into dashbitco:main May 16, 2023
@josevalim
Copy link
Member

💚 💙 💜 💛 ❤️

@edennis edennis deleted the increase-timeout-for-integration-test branch May 16, 2023 11:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants