Rever use of host.docker.internal
It's only supported on macOS
This commit is contained in:
parent
d5c0684ab4
commit
1c6e6ed087
@ -15,7 +15,7 @@ require __DIR__ . '/../bootstrap.php';
|
|||||||
|
|
||||||
define('AGENT', 'RatchetRFC/0.3');
|
define('AGENT', 'RatchetRFC/0.3');
|
||||||
|
|
||||||
$testServer = "host.docker.internal";
|
$testServer = $argc > 1 ? $argv[1] : "127.0.0.1";
|
||||||
|
|
||||||
$loop = React\EventLoop\Factory::create();
|
$loop = React\EventLoop\Factory::create();
|
||||||
|
|
||||||
|
12
tests/ab/docker_bootstrap.sh
Normal file
12
tests/ab/docker_bootstrap.sh
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
set -x
|
||||||
|
|
||||||
|
echo "Running $0"
|
||||||
|
|
||||||
|
echo Adding "$1 host.ratchet.internal" to /etc/hosts file
|
||||||
|
|
||||||
|
echo $1 host.ratchet.internal >> /etc/hosts
|
||||||
|
|
||||||
|
echo /etc/hosts contains:
|
||||||
|
cat /etc/hosts
|
||||||
|
echo
|
@ -5,7 +5,7 @@
|
|||||||
, "outdir": "/reports/servers"
|
, "outdir": "/reports/servers"
|
||||||
, "servers": [{
|
, "servers": [{
|
||||||
"agent": "RatchetRFC/0.3"
|
"agent": "RatchetRFC/0.3"
|
||||||
, "url": "ws://host.docker.internal:9001"
|
, "url": "ws://host.ratchet.internal:9001"
|
||||||
, "options": {"version": 18}
|
, "options": {"version": 18}
|
||||||
}]
|
}]
|
||||||
, "cases": [
|
, "cases": [
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
, "outdir": "/reports/servers"
|
, "outdir": "/reports/servers"
|
||||||
, "servers": [{
|
, "servers": [{
|
||||||
"agent": "RatchetRFC/0.3"
|
"agent": "RatchetRFC/0.3"
|
||||||
, "url": "ws://host.docker.internal:9001"
|
, "url": "ws://host.ratchet.internal:9001"
|
||||||
, "options": {"version": 18}
|
, "options": {"version": 18}
|
||||||
}]
|
}]
|
||||||
, "cases": ["*"]
|
, "cases": ["*"]
|
||||||
|
@ -48,7 +48,7 @@ if [ "$ABTEST" = "server" ]; then
|
|||||||
-v ${PWD}:/config \
|
-v ${PWD}:/config \
|
||||||
-v ${PWD}/reports:/reports \
|
-v ${PWD}/reports:/reports \
|
||||||
--name fuzzingclient \
|
--name fuzzingclient \
|
||||||
crossbario/autobahn-testsuite /bin/sh -c "wstest -m fuzzingclient -s /config/fuzzingclient$SKIP_DEFLATE.json"
|
crossbario/autobahn-testsuite /bin/sh -c "sh /config/docker_bootstrap.sh $IPADDR; wstest -m fuzzingclient -s /config/fuzzingclient$SKIP_DEFLATE.json"
|
||||||
sleep 1
|
sleep 1
|
||||||
|
|
||||||
# send the shutdown command to the PHP echo server
|
# send the shutdown command to the PHP echo server
|
||||||
|
Loading…
Reference in New Issue
Block a user