1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-22 15:24:46 -05:00

Fix flaky REPL test (#1491)

Fixes #1490
This commit is contained in:
Maxim Mazurok 2019-01-09 12:32:05 -08:00 committed by Ryan Dahl
parent 0ceb554343
commit 3634488caa

View file

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