Skip to content

Commit

Permalink
satisy race detector
Browse files Browse the repository at this point in the history
  • Loading branch information
onsi committed May 27, 2021
1 parent 52990e3 commit 353318d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gmeasure/experiment_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,8 @@ var _ = Describe("Experiment", func() {
time.Sleep(10 * time.Millisecond)
}, gmeasure.SamplingConfig{N: 100, Duration: 100 * time.Millisecond, NumParallel: 3})

lock.Lock()
defer lock.Unlock()
Ω(len(indices)).Should(BeNumerically("~", 30, 10))
Ω(indices).Should(ConsistOf(ints(len(indices))))
})
Expand Down

0 comments on commit 353318d

Please sign in to comment.