forked from mirror/redis
Handle test failures
This commit is contained in:
parent
e91b88fa17
commit
60e0221c3d
|
@ -123,6 +123,9 @@ var _ = Describe("Pipelining", func() {
|
||||||
wg.Add(N)
|
wg.Add(N)
|
||||||
for i := 0; i < N; i++ {
|
for i := 0; i < N; i++ {
|
||||||
go func(i int) {
|
go func(i int) {
|
||||||
|
defer GinkgoRecover()
|
||||||
|
defer wg.Done()
|
||||||
|
|
||||||
pipeline := client.Pipeline()
|
pipeline := client.Pipeline()
|
||||||
|
|
||||||
msg1 := "echo" + strconv.Itoa(i)
|
msg1 := "echo" + strconv.Itoa(i)
|
||||||
|
@ -142,8 +145,6 @@ var _ = Describe("Pipelining", func() {
|
||||||
Expect(echo2.Val()).To(Equal(msg2))
|
Expect(echo2.Val()).To(Equal(msg2))
|
||||||
|
|
||||||
Expect(pipeline.Close()).NotTo(HaveOccurred())
|
Expect(pipeline.Close()).NotTo(HaveOccurred())
|
||||||
|
|
||||||
wg.Done()
|
|
||||||
}(i)
|
}(i)
|
||||||
}
|
}
|
||||||
wg.Wait()
|
wg.Wait()
|
||||||
|
|
Loading…
Reference in New Issue