if testing.Short() { N = 100 } It("should echo", func() { wg := &sync.WaitGroup{} for i := 0; i < C; i++ { wg.Add(1) go func(i int) { defer GinkgoRecover() defer wg.Done() for j := 0; j < N; j++ { msg := "echo" + strconv.Itoa(i) echo := client.Echo(msg) Expect(echo.Err()).NotTo(HaveOccurred()) Expect(echo.Val()).To(Equal(msg)) } }(i) } wg.Wait() }) It("should incr", func() { key := "TestIncrFromGoroutines" wg := &sync.WaitGroup{} for i := 0; i < C; i++ { wg.Add(1) go func() {