Skip to content

🐛 Bug: Timeout of 0 (no timeout) for tests that never resolve closes Mocha with always successful exit-code without finishing reporter output #2537

Open

Description

Timeout 0 and un-resolved async function lead nowhere.
No throw, no error, no next test running, nothing.

describe("should never end", function(){
  this.timeout(0);

  it("should never end", function(done){ });

  it("is here now", function(){
    console.log("Allgood");
  });
});

Current result

R:\>node d:dvp\node_modules\mocha\bin\_mocha test.js
  should never end
R:\>

Expected result

R:\>node d:dvp\node_modules\mocha\bin\_mocha test.js
  should never end
  (???? something ?? waiting undefinitively ?) , but NOT nothing
R:\>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    status: accepting prsMocha can use your help with this one!type: buga defect, confirmed by a maintainer

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions