Skip to content
Snippets Groups Projects
Commit 3742bbb6 authored by Alexander Turenko's avatar Alexander Turenko Committed by Alexander Turenko
Browse files

test: fix wait_until_ready in cluster:start()

The option was handled incorrectly in some cases.

Before this commit the behavior was the following.

| Code                                      | Waits? | Is it correct? |
| ----------------------------------------- | ------ | -------------- |
| cluster:start()                           | Yes    | Yes            |
| cluster:start({wait_until_ready = true})  | Yes    | Yes            |
| cluster:start({wait_until_ready = false}) | No     | Yes            |
| cluster:start({})                         | No     | !! No !!       |

Now it is the following.

| Code                                      | Waits? | Is it correct? |
| ----------------------------------------- | ------ | -------------- |
| cluster:start()                           | Yes    | Yes            |
| cluster:start({wait_until_ready = true})  | Yes    | Yes            |
| cluster:start({wait_until_ready = false}) | No     | Yes            |
| cluster:start({})                         | Yes    | !! Yes !!      |

There are no tests affected by this problem, but it worth to fix it just
in case.

NO_DOC=testing helper change
NO_CHANGELOG=see NO_DOC
NO_TEST=no code is added to tarantool itself
parent e01fe8f7
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment