diff --git a/.github/workflows/check.yaml b/.github/workflows/check.yaml index 0939cb2..2044100 100644 --- a/.github/workflows/check.yaml +++ b/.github/workflows/check.yaml @@ -28,10 +28,10 @@ jobs: ${{ runner.os }}-go- - name: Run tests - run: go test -v -race ./... + run: go test -race ./... - name: Run coverage - run: go test -coverprofile=coverage.out -covermode=atomic + run: go test -coverprofile=coverage.out -covermode=atomic ./... - name: Upload coverage reports to Codecov uses: codecov/codecov-action@v4.0.1 diff --git a/core_test.go b/core_test.go index f3dc4d3..a8e70ba 100644 --- a/core_test.go +++ b/core_test.go @@ -352,7 +352,7 @@ func TestForEach(t *testing.T) { t.Errorf("early exit did not happen") } - time.Sleep(2 * time.Second) + time.Sleep(1 * time.Second) th.ExpectDrainedChan(t, in) }) }) @@ -379,7 +379,7 @@ func TestForEach(t *testing.T) { } // wait until it drained - time.Sleep(2 * time.Second) + time.Sleep(1 * time.Second) th.ExpectDrainedChan(t, in) }) }) diff --git a/wrap_test.go b/wrap_test.go index bd1f0d4..21af4ba 100644 --- a/wrap_test.go +++ b/wrap_test.go @@ -57,7 +57,7 @@ func TestFromSlice(t *testing.T) { th.ExpectSlice(t, outSlice, inSlice[:15]) th.ExpectError(t, err, "err15") - time.Sleep(2 * time.Second) + time.Sleep(1 * time.Second) th.ExpectDrainedChan(t, in) }) }