From e660de910a08eb32c8551c48b39317fff1136c1b Mon Sep 17 00:00:00 2001 From: Taras Madan Date: Tue, 13 Dec 2022 16:52:51 +0100 Subject: vm/proxyapp: fix race on mock calls in the test (#3584) --- vm/proxyapp/proxyappclient_tcp_test.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'vm/proxyapp') diff --git a/vm/proxyapp/proxyappclient_tcp_test.go b/vm/proxyapp/proxyappclient_tcp_test.go index de04a6755..6ce5c62ee 100644 --- a/vm/proxyapp/proxyappclient_tcp_test.go +++ b/vm/proxyapp/proxyappclient_tcp_test.go @@ -72,8 +72,12 @@ func TestCtor_TCP_Reconnect_On_LostConnection(t *testing.T) { ctor(makeTestParams(), testTCPEnv(port)) <-onConnect + <-mProxyAppServer.OnLogsReceived + closeServerConnections() + <-onConnect + <-mProxyAppServer.OnLogsReceived } func TestCtor_TCP_Reconnect_PoolChanged(t *testing.T) { -- cgit mrf-deployment