Skip to content

Commit 0499bab

Browse files
authored
Using container ip address (#72)
* Using container ip address * Fixed unit test
1 parent ad3624f commit 0499bab

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

Appium/generate_config.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ if [ -z "$PLATFORM_NAME" ]; then
77
fi
88

99
if [ -z "$APPIUM_HOST" ]; then
10-
APPIUM_HOST="127.0.0.1"
10+
APPIUM_HOST=$(hostname -i)
1111
fi
1212

1313
if [ -z "$APPIUM_PORT" ]; then

Appium/tests/grid.bats

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ adb_devices_output='73QDU16916010699 device 4b13354b80b36200 device'
4646
"-s 4b13354b80b36200 shell getprop ro.build.version.release : echo 5.1.1" \
4747
"-s 4b13354b80b36200 shell getprop ro.serialno : echo 4b13354b80b36200"
4848

49-
run /root/generate_config.sh $node_config_json
49+
APPIUM_HOST=127.0.0.1 run /root/generate_config.sh $node_config_json
5050
[ "$(cat $node_config_json)" == "$default_node_config" ]
5151

5252
unstub adb

docker-compose.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ services:
1515
image: appium/appium
1616
depends_on:
1717
- selenium_hub
18-
network_mode: "service:selenium_hub"
1918
privileged: true
2019
volumes:
2120
- /dev/bus/usb:/dev/bus/usb

0 commit comments

Comments
 (0)