Skip to content

Commit

Permalink
Handle test failures
Browse files Browse the repository at this point in the history
  • Loading branch information
dim committed Apr 17, 2015
1 parent e91b88f commit 60e0221
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pipeline_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,9 @@ var _ = Describe("Pipelining", func() {
wg.Add(N)
for i := 0; i < N; i++ {
go func(i int) {
defer GinkgoRecover()
defer wg.Done()

pipeline := client.Pipeline()

msg1 := "echo" + strconv.Itoa(i)
Expand All @@ -142,8 +145,6 @@ var _ = Describe("Pipelining", func() {
Expect(echo2.Val()).To(Equal(msg2))

Expect(pipeline.Close()).NotTo(HaveOccurred())

wg.Done()
}(i)
}
wg.Wait()
Expand Down

0 comments on commit 60e0221

Please sign in to comment.