Skip to content

Test runs twice #1327

Closed
Closed

Description

This gist produces the following output, where test 3 runs twice. (It actually does run twice, as can be observed with the process.stdout.writes; it's not just a reporting artifact)

child_process: customFds option is deprecated, use stdio instead.

✓ test 1 
1) test 1
This actually runs twice.
This actually runs twice.
2) test 3
3) test 3

1 passing (8ms)
3 failing

1)  test 1:
   Uncaught Error: Too bad
    at /Users/dom/Dev/JSRad/dupe-test.js:3:15
    at process._tickCallback (node.js:343:11)

2)  test 3:
   Error: done() invoked with non-Error: OUCH
    at Object.<anonymous> (/Users/dom/Dev/JSRad/node_modules/mocha.git/lib/runnable.js:223:25)
    at process._tickCallback (node.js:343:11)

3)  test 3:
   Error: done() invoked with non-Error: OUCH
    at Object.<anonymous> (/Users/dom/Dev/JSRad/node_modules/mocha.git/lib/runnable.js:223:25)
    at process._tickCallback (node.js:343:11)

This looks like it could be related with #660

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

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions