Move and export ExpectWorkers (#4207)

This is a useful test function and keeping it in the cluster package
means it can't be used by api/cli tests.
This commit is contained in:
Jeff Mitchell authored and GitHub committed 2024-01-03 10:41:12 -05:00
1 parent 9b56db8858
commit fe4c43305c
9 files changed
+62 -71

No files matched your search

+2 -2
View File
@@ -46,7 +46,7 @@ func TestWorkerSessionProxyMultipleConnections(t *testing.T) {
})
defer c1.Shutdown()
expectWorkers(t, c1)
helper.ExpectWorkers(t, c1)
// Wire up the testing proxies
require.Len(c1.ClusterAddrs(), 1)
@@ -71,7 +71,7 @@ func TestWorkerSessionProxyMultipleConnections(t *testing.T) {
require.NoError(err)
err = c1.WaitForNextWorkerStatusUpdate(w1.Name())
require.NoError(err)
expectWorkers(t, c1, w1)
helper.ExpectWorkers(t, c1, w1)
// Use an independent context for test things that take a context so
// that we aren't tied to any timeouts in the controller, etc. This