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

@@ -44,7 +44,7 @@ func TestWorkerBytesUpDown(t *testing.T) {
WorkerStatusGracePeriodDuration: helper.DefaultWorkerStatusGracePeriod,
})
expectWorkers(t, c1)
helper.ExpectWorkers(t, c1)
// Wire up the testing proxies
require.Len(c1.ClusterAddrs(), 1)
@@ -66,7 +66,7 @@ func TestWorkerBytesUpDown(t *testing.T) {
require.NoError(w1.Worker().WaitForNextSuccessfulStatusUpdate())
require.NoError(c1.WaitForNextWorkerStatusUpdate(w1.Name()))
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