From 4e98cb944226485bf171703df3d8a3e4af8ac3e1 Mon Sep 17 00:00:00 2001 From: Ruben Bridgewater Date: Mon, 31 Oct 2016 20:49:06 +0100 Subject: [PATCH] Improve error message --- test/connection.spec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/connection.spec.js b/test/connection.spec.js index 9661f42..f92dca1 100644 --- a/test/connection.spec.js +++ b/test/connection.spec.js @@ -371,7 +371,7 @@ describe('connection tests', function () { if (err.code === 'ENETUNREACH') { // The test is run without a internet connection. Pretent it works return done(); } - assert(/Redis connection in broken state: connection timeout.*?exceeded./.test(err.message)); + assert(/Redis connection in broken state: connection timeout.*?exceeded./.test(err.message), err.message); // The code execution on windows is very slow at times var add = process.platform !== 'win32' ? 15 : 200; var now = Date.now();