Skip to content

armgit / mocha

Public Imported from GitHub
0

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

chore: fix timeout issue with some XUnit tests

Mark Wiemer53cc46755571
diff --git a/test/reporters/xunit.spec.js b/test/reporters/xunit.spec.js
index 57eaa0a5..13bf6f99 100644
--- a/test/reporters/xunit.spec.js
+++ b/test/reporters/xunit.spec.js
@@ -105,7 +105,10 @@ describe("XUnit reporter", function () {
path.basename(expectedOutput),
);
touchFile(path.dirname(invalidPath));
- });
+
+ // this sometimes takes more than 1 second in GitHub Actions
+ // https://github.com/mochajs/mocha/issues/5361
+ }).timeout(2000);
it("should throw system error", function () {
var options = {