From d1457cde35c6f12e625619eaa24b3165b628b2bb Mon Sep 17 00:00:00 2001 From: Jacob Heun Date: Tue, 17 Apr 2018 01:18:03 +0200 Subject: [PATCH] fix: fix tests for ci --- test/lock-test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/lock-test.js b/test/lock-test.js index 670a19f3..630c2642 100644 --- a/test/lock-test.js +++ b/test/lock-test.js @@ -32,7 +32,7 @@ module.exports = (repo) => { const mochaExceptionHandler = process.listeners('uncaughtException').pop() process.removeListener('uncaughtException', mochaExceptionHandler) process.once('uncaughtException', function (err) { - expect(err.message).to.match(/already held/) + expect(err.message).to.match(/already held|IO error/) }) series([