Skip to content

Commit

Permalink
Tweaked timings for race detector
Browse files Browse the repository at this point in the history
  • Loading branch information
destel committed Mar 26, 2024
1 parent 3d1c903 commit a11fcb3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
Expand Down
4 changes: 2 additions & 2 deletions core_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
})
})
Expand All @@ -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)
})
})
Expand Down
2 changes: 1 addition & 1 deletion wrap_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
})
}
Expand Down

0 comments on commit a11fcb3

Please sign in to comment.