Don't set interval too short.
Otherwise it could be possible that the callback executes for multiple times before it is cleared.
This commit is contained in:
parent
3c078b4dab
commit
424a00cf29
1 changed files with 1 additions and 1 deletions
|
@ -74,7 +74,7 @@ describe 'node feature', ->
|
|||
clear = ->
|
||||
remote.getGlobal('clearInterval')(interval)
|
||||
done()
|
||||
interval = remote.getGlobal('setInterval')(clear, 0)
|
||||
interval = remote.getGlobal('setInterval')(clear, 10)
|
||||
|
||||
describe 'message loop', ->
|
||||
describe 'process.nextTick', ->
|
||||
|
|
Loading…
Reference in a new issue