From 961ecd129cf755a989727c09ebf0d95f99052f52 Mon Sep 17 00:00:00 2001 From: Martti Laine Date: Wed, 11 Apr 2018 17:23:01 +0200 Subject: [PATCH] Correctly catch exception in http test (#1475) --- test/unit/adapters/http.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/unit/adapters/http.js b/test/unit/adapters/http.js index a661563..48d8ac9 100644 --- a/test/unit/adapters/http.js +++ b/test/unit/adapters/http.js @@ -243,6 +243,10 @@ module.exports = { test.equal(resp.status, 200); test.equal(resp.statusText, 'OK'); test.done(); + }) + .catch(function (error) { + test.ifError(error); + test.done(); }); }); },