From fccf46c67dee2b677b62e7cab9b85d22e9b8d5e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Garc=C3=ADa=20Aubert?= Date: Fri, 16 Mar 2018 18:06:31 +0100 Subject: [PATCH] Add host header to test-client (ported) --- test/acceptance/ported/support/test_client.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/acceptance/ported/support/test_client.js b/test/acceptance/ported/support/test_client.js index d36d811b..73c3ee93 100644 --- a/test/acceptance/ported/support/test_client.js +++ b/test/acceptance/ported/support/test_client.js @@ -72,7 +72,7 @@ function createLayergroup(layergroupConfig, options, callback) { }); }, function validateLayergroup(err, res) { - assert.ok(!err, 'Failed to request layergroup'); + assert.ifError(err); var parsedBody; var layergroupid; @@ -129,6 +129,7 @@ function layergroupRequest(layergroupConfig, method, callbackName, extraParams) var request = { url: '/database/windshaft_test/layergroup', headers: { + host: 'localhost', 'Content-Type': 'application/json' } };