From 7554db9cbd58e729d5357ea91a41cd9fdfcf703f Mon Sep 17 00:00:00 2001 From: Daisuke Taniwaki Date: Thu, 14 Mar 2019 00:57:06 +0900 Subject: [PATCH] Fix goroutine error in test (#229) --- gateways/event-source_test.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gateways/event-source_test.go b/gateways/event-source_test.go index 2ddf33c479..da29b30d03 100644 --- a/gateways/event-source_test.go +++ b/gateways/event-source_test.go @@ -151,10 +151,12 @@ testKey: testValue convey.Convey("Event source should be removed", t, func() { convey.So(i, convey.ShouldNotEqual, 0) convey.So(event.Message, convey.ShouldEqual, "event_source_is_removed") - wg.Done() }) + goto end } } + end: + wg.Done() }() convey.Convey("Given new event sources, start consuming events", t, func() {