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.
This commit is contained in:
Avery Pennarun 2020-05-14 06:29:14 -04:00
parent 8f8607b6bf
commit d0754760e7

View File

@ -361,7 +361,17 @@ func TestControl(t *testing.T) {
}) })
runSub(t, "set hostinfo", func(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.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"}) c4.UpdateEndpoints(9876, []string{"5.6.7.8:1111"})
c3.waitStatus(t, stateSynchronized) c3.waitStatus(t, stateSynchronized)
c4.waitStatus(t, stateSynchronized) c4.waitStatus(t, stateSynchronized)