aboutsummaryrefslogtreecommitdiffstats
path: root/vm/proxyapp
diff options
context:
space:
mode:
authorTaras Madan <tarasmadan@google.com>2022-12-13 16:52:51 +0100
committerGitHub <noreply@github.com>2022-12-13 16:52:51 +0100
commite660de910a08eb32c8551c48b39317fff1136c1b (patch)
tree236ac2874307caec00d3f798735700427f46d116 /vm/proxyapp
parent67be1ae742603edad9c97d30b6ed69f9bbe2ffa8 (diff)
vm/proxyapp: fix race on mock calls in the test (#3584)
Diffstat (limited to 'vm/proxyapp')
-rw-r--r--vm/proxyapp/proxyappclient_tcp_test.go4
1 files changed, 4 insertions, 0 deletions
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) {