test: Increase disconnectTimeout to reduce test flakes (#26)

* test: Increase disconnectTimeout to reduce test flakes

WebRTC uses UDP, which means a network connection is never open or closed. It uses timeouts to determine connection state; on a slow CI runner, these timeouts could be reached. Increasing this timeout should reduce flakes, but is unlikely to remove this flake entirely.

* Fix close after offline

* Run tests in parallel
This commit is contained in:
Kyle Carberry
2022-01-14 10:12:07 -06:00
committed by GitHub
parent 423611b001
commit a461bc1454
2 changed files with 5 additions and 2 deletions
+1 -1
View File
@@ -130,7 +130,7 @@ jobs:
- run:
gotestsum --jsonfile="gotests.json" --packages="./..." --
-covermode=atomic -coverprofile="gotests.coverage" -timeout=3m
-count=3 -race
-count=3 -race -parallel=2
- uses: codecov/codecov-action@v2
with: