Skip to content

Commit

Permalink
test: fix app/fiber.test.lua flaky fails
Browse files Browse the repository at this point in the history
Fixes #3852.

(cherry picked from commit 0e19478)
  • Loading branch information
Totktonada authored and locker committed Dec 3, 2018
1 parent 2bbfa39 commit 844b45b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
9 changes: 5 additions & 4 deletions test/app/fiber.result
Expand Up @@ -1103,9 +1103,6 @@ function test5()
end;
---
...
local status;
---
...
f, status = test5();
---
...
Expand Down Expand Up @@ -1140,8 +1137,12 @@ status;
---
- suspended
...
f:status();
test_run:wait_cond(function()
status = f:status()
return status == 'dead', status
end, 10);
---
- true
- dead
...
-- test side fiber in transaction
Expand Down
6 changes: 4 additions & 2 deletions test/app/fiber.test.lua
Expand Up @@ -465,7 +465,6 @@ function test5()
f:set_joinable(true)
return f, f:status()
end;
local status;
f, status = test5();
status;
f:status();
Expand All @@ -480,7 +479,10 @@ function test6()
end;
f, status = test6();
status;
f:status();
test_run:wait_cond(function()
status = f:status()
return status == 'dead', status
end, 10);

-- test side fiber in transaction
s = box.schema.space.create("test");
Expand Down

0 comments on commit 844b45b

Please sign in to comment.