Skip to content

Commit

Permalink
run test with race condition detector
Browse files Browse the repository at this point in the history
  • Loading branch information
samber committed Mar 5, 2022
1 parent 8d3debc commit 094b6f9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ build:
test:
go test -race -v ./...
watch-test:
reflex -R assets.go -t 50ms -s -- sh -c 'gotest -v ./...'
reflex -R assets.go -t 50ms -s -- sh -c 'gotest -race -v ./...'

bench:
go test -benchmem -count 3 -bench ./...
Expand Down
1 change: 0 additions & 1 deletion parallel/slice.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,6 @@ func PartitionBy[T any, K comparable](collection []T, iteratee func (x T) K) [][

for _, item := range collection {
go func(_item T) {
defer wg.Done()
key := iteratee(_item)

mu.Lock()
Expand Down

0 comments on commit 094b6f9

Please sign in to comment.