From b8a4e1c4a3f17f97c2b68ca72df1c9c64961f012 Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Tue, 20 Aug 2019 13:34:18 -0700 Subject: [PATCH] Use docker for apps-test --- src/apps.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/apps.js b/src/apps.js index 1b506eec0..849f8e1c2 100644 --- a/src/apps.js +++ b/src/apps.js @@ -489,7 +489,8 @@ function getByIpAddress(ip, callback) { assert.strictEqual(typeof ip, 'string'); assert.strictEqual(typeof callback, 'function'); - if (constants.TEST) return get(exports._MOCK_GET_BY_IP_APP_ID, callback); + // this is only used by the ldap test. the apps tests still uses proper docker + if (constants.TEST && exports._MOCK_GET_BY_IP_APP_ID) return get(exports._MOCK_GET_BY_IP_APP_ID, callback); docker.getContainerIdByIp(ip, function (error, containerId) { if (error) return callback(new AppsError(AppsError.INTERNAL_ERROR, error));