From 2ae22b33b7de6d327369aa35da66f6d4acd9c194 Mon Sep 17 00:00:00 2001 From: Lantao Liu Date: Wed, 14 Jun 2017 01:50:02 +0000 Subject: [PATCH] Fix a race that fake execution client sends event to closed channel. Signed-off-by: Lantao Liu --- pkg/server/testing/fake_execution_client.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/server/testing/fake_execution_client.go b/pkg/server/testing/fake_execution_client.go index 6a00127c4..4e083cf4e 100644 --- a/pkg/server/testing/fake_execution_client.go +++ b/pkg/server/testing/fake_execution_client.go @@ -89,6 +89,7 @@ func (f *FakeExecutionClient) Stop() { for _, client := range f.eventClients { close(client.Events) } + f.eventClients = nil } // WithEvents setup events publisher for FakeExecutionClient