From 0aa98a66104d16e80af1d6fa4f6d4348d647a889 Mon Sep 17 00:00:00 2001 From: Jonathan Lipps Date: Tue, 2 Jul 2013 16:10:58 -0700 Subject: [PATCH] make sure webview guinea pig runs on same port as appium --- test/helpers/webview.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/helpers/webview.js b/test/helpers/webview.js index ce3a39ef9..1f7cde0ab 100644 --- a/test/helpers/webview.js +++ b/test/helpers/webview.js @@ -4,8 +4,9 @@ var driverBlock = require("./driverblock.js") , describeSafari = driverBlock.describeForSafari() , describeChrome = driverBlock.describeForChrome() - , testEndpoint = 'http://localhost:4723/test/' - , chromeEndpoint = 'http://10.0.2.2:4723/test/' + , appiumPort = process.env.APPIUM_PORT || 4723 + , testEndpoint = 'http://localhost:' + appiumPort + '/test/' + , chromeEndpoint = 'http://10.0.2.2:' + appiumPort + '/test/' , guinea = testEndpoint + 'guinea-pig' , chromeGuinea = chromeEndpoint + 'guinea-pig' , _ = require('underscore')