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

Remove expectation on token timeout #386

Merged
merged 1 commit into from
Oct 13, 2020
Merged

Remove expectation on token timeout #386

merged 1 commit into from
Oct 13, 2020

Conversation

Zerpet
Copy link
Member

@Zerpet Zerpet commented Oct 8, 2020

Note to reviewers: remember to look at the commits in this PR and consider if they can be squashed

Summary Of Changes

Remove the expectations around token wait with timeout. This wait is inside the "retry loop", therefore
this function is expected to return false in some cases, which is fine because the loop will retry
shortly after. The expectation around the token error right after the retry loop is correct because
we don't know from the loop if the connection has been successful, therefore we have to assert on the
token success right after the retry loop to guarantee that the connection was a success (or fail the test otherwise).

Local Testing

System tests have changed one line. They should be green.

Copy link
Contributor

@coro coro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could this

@Zerpet Zerpet force-pushed the system-tests-mqtt branch from 3ef3a7d to 4863a88 Compare October 8, 2020 16:11
The retry logic should contain no expectations because it's expected to
fail sometimes and retry in such cases.
@Zerpet Zerpet force-pushed the system-tests-mqtt branch from 4863a88 to 48d2f01 Compare October 13, 2020 11:26
Copy link
Contributor

@ChunyiLyu ChunyiLyu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🦖 nice!

@Zerpet Zerpet merged commit 1e91931 into main Oct 13, 2020
@Zerpet Zerpet deleted the system-tests-mqtt branch October 13, 2020 17:49
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.

4 participants