Skip to content

test: vinyl/gh.test.lua fix mistake #6168

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

Merged
merged 1 commit into from
Jun 22, 2021
Merged

test: vinyl/gh.test.lua fix mistake #6168

merged 1 commit into from
Jun 22, 2021

Conversation

avtikhon
Copy link
Contributor

@avtikhon avtikhon commented Jun 21, 2021

Found that in one previous commit

  42c64d06d5d1a3ec937b3c596af083a672a68ad8 ('test: fix hanging of vinyl/gh.test.lua')

Was mistakenly made such change:

  -while finished ~= 2 do fiber.sleep(0.01) end
  +test_run:wait_cond(function() return finished ~= 2 end)

And the logic of the check was broken. This patch fixes it.

Part of tarantool/tarantool-qa#205
Fixes tarantool/test-run#261
Part of tarantool/tarantool-qa#106

@avtikhon avtikhon added the teamQ label Jun 21, 2021
@avtikhon avtikhon requested a review from Totktonada June 21, 2021 07:44
@avtikhon avtikhon self-assigned this Jun 21, 2021
@avtikhon avtikhon requested a review from kyukhin June 21, 2021 07:50
@coveralls
Copy link

coveralls commented Jun 21, 2021

Coverage Status

Coverage decreased (-0.01%) to 84.198% when pulling 0716b02 on avtikhon/gh-crash-gh into b5b1dff on master.

Found that in one previous commit

  42c64d0 ('test: fix hanging of vinyl/gh.test.lua')

Was mistakenly made such change:

  -while finished ~= 2 do fiber.sleep(0.01) end
  +test_run:wait_cond(function() return finished ~= 2 end)

And the logic of the check was broken. This patch fixes it.

Part of #5141
Fixes tarantool/test-run#261
Part of tarantool/tarantool-qa#106
@avtikhon avtikhon force-pushed the avtikhon/gh-crash-gh branch from 0535197 to 0e8e067 Compare June 21, 2021 10:59
@avtikhon avtikhon added the draft label Jun 21, 2021
@avtikhon avtikhon force-pushed the avtikhon/gh-crash-gh branch from 0e8e067 to 0716b02 Compare June 21, 2021 11:46
Copy link
Member

@Totktonada Totktonada left a comment

Choose a reason for hiding this comment

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

No objections from me.

But whether the test will hang from time to time now?

@avtikhon
Copy link
Contributor Author

No objections from me.

But whether the test will hang from time to time now?

test_run:wait_cond() will check for it.

@Totktonada
Copy link
Member

test_run:wait_cond() will check for it.

Will it fail from time to time? AFAIU, it is why you created 42c64d0 in the first place.

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.

Crash on greenlet.switch
4 participants