From d0754760e7bca38712771234858ed151f2273b34 Mon Sep 17 00:00:00 2001 From: Avery Pennarun Date: Thu, 14 May 2020 06:29:14 -0400 Subject: [PATCH] controlclient/auto_test: fix flake "peer OS is not linux" on macOS. We were mis-counting the number of Synchronized messages that we should have been generating. --- control/controlclient/auto_test.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/control/controlclient/auto_test.go b/control/controlclient/auto_test.go index 0ad0b5cc3..a81e44b6a 100644 --- a/control/controlclient/auto_test.go +++ b/control/controlclient/auto_test.go @@ -361,7 +361,17 @@ func TestControl(t *testing.T) { }) runSub(t, "set hostinfo", func(t *testing.T) { + c3.Login(nil, LoginDefault) + c4.Login(nil, LoginDefault) + c3.waitStatus(t, stateAuthenticated) + c4.waitStatus(t, stateAuthenticated) + c3.waitStatus(t, stateSynchronized) + c4.waitStatus(t, stateSynchronized) + c3.UpdateEndpoints(9876, []string{"1.2.3.4:3333"}) + c3.waitStatus(t, stateSynchronized) + c4.waitStatus(t, stateSynchronized) + c4.UpdateEndpoints(9876, []string{"5.6.7.8:1111"}) c3.waitStatus(t, stateSynchronized) c4.waitStatus(t, stateSynchronized)