-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix intermittent failures after
docker run
in common tests (#79)
When the server containers are started in common tests we wait a while before checking for node availability using an `ered_client`. If the Github CI is choked some containers might take longer time to start than our defined sleep. Lets replace this fixed time with a common function that wait for a `connection_up` event from each node instead. This should give faster initiations during normal times when Github CI is not choked. Using a `connect_timeout` will also avoid failures when connecting to containers during startup. Additionally in this PR; replace the `ered_SUITE` local function `recv/2` with the common `?MSG` macro; and a fixup of ered_connection:opt() to include the recently added `connect_timeout`. Signed-off-by: Björn Svensson <[email protected]>
- Loading branch information
Showing
4 changed files
with
39 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters