Skip to content

Commit

Permalink
Fix fibers sleep self-test
Browse files Browse the repository at this point in the history
  • Loading branch information
wingo committed May 4, 2018
1 parent a6654ce commit e1b0324
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/lib/fibers/sleep.lua
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,7 @@ function selftest()
fiber.spawn(fn)
end
for t=now(),now()+1.5,0.01 do
fiber.current_scheduler:schedule_expired_timers(t)
fiber.current_scheduler:run()
fiber.current_scheduler:run(t)
end
assert(#done == count)
print('selftest: ok')
Expand Down

0 comments on commit e1b0324

Please sign in to comment.