Skip to content

Commit

Permalink
address comment
Browse files Browse the repository at this point in the history
  • Loading branch information
tiancaiamao committed Jun 10, 2017
1 parent 5114dbf commit 9a32615
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pd-client/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -182,14 +182,14 @@ func (s *testClientSuite) TestTSORace(c *C) {
count := 10
wg.Add(count)
for i := 0; i < count; i++ {
go func(begin chan struct{}, wg *sync.WaitGroup) {
go func() {
<-begin
for i := 0; i < 100; i++ {
_, _, err := s.client.GetTS(context.Background())
c.Assert(err, IsNil)
}
wg.Done()
}(begin, &wg)
}()
}
close(begin)
wg.Wait()
Expand Down

0 comments on commit 9a32615

Please sign in to comment.