1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-26 17:19:06 -05:00

Fix flaky REPL test.

This commit is contained in:
Ryan Dahl 2018-11-30 09:41:12 -05:00
parent aab02805dd
commit 122ccce89a

View file

@ -90,9 +90,9 @@ class Repl(object):
def test_set_timeout_interlaced(self):
out, err, code = self.input(
"setTimeout(() => console.log('a'), 250)",
"setTimeout(() => console.log('b'), 150)",
sleep=0.2)
"setTimeout(() => console.log('a'), 500)",
"setTimeout(() => console.log('b'), 300)",
sleep=0.4)
assertEqual(out, '1\n2\na\nb\n')
assertEqual(err, '')
assertEqual(code, 0)