good morning!!!!

Skip to content
Snippets Groups Projects
Unverified Commit 9b8320ed authored by Anmol Sethi's avatar Anmol Sethi
Browse files

Remove fifo from wasm.sh

Should prevent the sporadic failures in CI.
parent 181b36eb
Branches
Tags v1.6.4
No related merge requests found
......@@ -9,13 +9,13 @@ GOOS=js GOARCH=wasm go vet ./...
go install golang.org/x/lint/golint
GOOS=js GOARCH=wasm golint -set_exit_status ./...
wsjstestOut="$(mktemp -d)/stdout"
mkfifo "$wsjstestOut"
wsjstestOut="$(mktemp)"
go install ./internal/wsjstest
timeout 30s wsjstest > "$wsjstestOut" &
timeout 30s wsjstest >> "$wsjstestOut" &
wsjstestPID=$!
WS_ECHO_SERVER_URL="$(timeout 10s head -n 1 "$wsjstestOut")" || true
# See https://superuser.com/a/900134
WS_ECHO_SERVER_URL="$( (tail -f -n0 "$wsjstestOut" &) | timeout 10s head -n 1)"
if [[ -z $WS_ECHO_SERVER_URL ]]; then
echo "./internal/wsjstest failed to start in 10s"
exit 1
......@@ -25,7 +25,7 @@ go install github.com/agnivade/wasmbrowsertest
GOOS=js GOARCH=wasm go test -exec=wasmbrowsertest ./... -args "$WS_ECHO_SERVER_URL"
if ! wait "$wsjstestPID"; then
echo "wsjstest exited unsuccessfully"
echo "--- wsjstest exited unsuccessfully"
echo "output:"
cat "$wsjstestOut"
exit 1
......
......@@ -36,6 +36,7 @@ func main() {
os.Exit(0)
}))
wsURL := strings.Replace(s.URL, "http", "ws", 1)
fmt.Printf("%v\n", wsURL)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment