From c8d649deec5ae92b748da341655ca14e4175d356 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=9D=B4=EC=9C=A4=ED=98=81/=EC=97=B0=EA=B5=AC=EC=9B=90/TV?= =?UTF-8?q?=20Contents=20Service=ED=8C=80=28yunhyeok=2Elee=40lge=2Ecom=29?= Date: Thu, 9 May 2019 15:20:58 +0900 Subject: [PATCH] Fix regular expression for appUrl.replace. This is because, according to dial document, there is no mention of '/' behind of IP Address/Port/apps --- server/tests/js_tests/libs/dialClient.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/tests/js_tests/libs/dialClient.js b/server/tests/js_tests/libs/dialClient.js index d6d27b5..37595da 100644 --- a/server/tests/js_tests/libs/dialClient.js +++ b/server/tests/js_tests/libs/dialClient.js @@ -279,7 +279,7 @@ function constructAppResourceUrl(host, appName) { return new Q() .then(getAppsUrl.bind(null, host)) .then(function (appUrl) { - return appUrl.replace(/\/+$/, `/${appName}`); + return appUrl.replace(/\/*$/, `/${appName}`); }); } @@ -423,4 +423,4 @@ module.exports.hideApplicationInstance = hideApplicationInstance; module.exports.constructAppResourceUrl = constructAppResourceUrl; module.exports.getAppsUrl = getAppsUrl; module.exports.getLocation = getLocation; -module.exports.sleepSystem = sleepSystem; \ No newline at end of file +module.exports.sleepSystem = sleepSystem;