Skip to content

Conversation

abbr
Copy link

@abbr abbr commented Sep 10, 2015

Call start regardless whether list is new
or not to prevent incorrect active_handles
count.

Fixes nodejs/node-v0.x-archive#25831.
Ported from pr nodejs/node-v0.x-archive#25832.

Call start regardless whether list is new
or not to prevent incorrect active_handles
count.

Fixes nodejs/node-v0.x-archive#25831.
@brendanashworth brendanashworth added the timers Issues and PRs related to the timers subsystem / setImmediate, setInterval, setTimeout. label Sep 10, 2015
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use strict should be the first line.

@thefourtheye
Copy link
Contributor

The simple directory under test directory is specific to the old repository. Here you need to put this either in parallel or sequential directory.

@mscdex
Copy link
Contributor

mscdex commented Sep 10, 2015

Is it possible to create a test that doesn't have to compile C++ code (while tests are running)? Maybe utilize process._getActiveHandles() to check the active handle count?

@abbr
Copy link
Author

abbr commented Sep 10, 2015

@mscdex, the c++ code is used to expose uv_run to js, not for reporting active handles.

@vkurchatkin
Copy link
Contributor

Why do you need uv_run to test incorrect active handles count?

@Fishrock123
Copy link
Contributor

Please move the tests into test/parallel/ :)

@abbr
Copy link
Author

abbr commented Sep 12, 2015

Just realized pr should be applied to master branch. I will close this pr and submit a new one.

@mscdex, in my updated test case of the new pr, I found process._getActiveHandles().length is reporting wrong # of count: 3, as opposed to c++ uv_default_loop()->active_handles of 0 which is used in the test case. Possibly another bug.

@vkurchatkin , uv_run is not used to test incorrect handles. It's how the problem occurs. Just nesting two setTimeout calls with same value won't cause the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

timers Issues and PRs related to the timers subsystem / setImmediate, setInterval, setTimeout.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants