diff --git a/ci/test.sh b/ci/test.sh index 1b3d6cc3..265e0a3a 100755 --- a/ci/test.sh +++ b/ci/test.sh @@ -3,6 +3,9 @@ set -eu cd -- "$(dirname "$0")/.." go install github.com/agnivade/wasmbrowsertest@latest +if [ "${CI-}" ]; then + export AUTOBAHN=1 +fi go test --race --timeout=1h --covermode=atomic --coverprofile=ci/out/coverage.prof --coverpkg=./... "$@" ./... sed -i.bak '/stringer\.go/d' ci/out/coverage.prof sed -i.bak '/nhooyr.io\/websocket\/internal\/test/d' ci/out/coverage.prof