Skip to content

armgit / mocha

Public Imported from GitHub
0

☕️ Classic, reliable, trusted test framework for Node.js and the browser

attempt windows-friendly reproducible case for #2315

Christopher Hiller96e20df35749
diff --git a/test/integration/fixtures/regression/issue-2315.js b/test/integration/fixtures/regression/issue-2315.js
index d3d1f936..cdfb2010 100644
--- a/test/integration/fixtures/regression/issue-2315.js
+++ b/test/integration/fixtures/regression/issue-2315.js
@@ -1,6 +1,8 @@
describe('issue-2315: cannot read property currentRetry of undefined', function () {
before(function () {
- require('http').createServer().listen(1);
+ process.nextTick(function () {
+ throw new Error();
+ });
});
it('something', function () {});