func TestWatchEndPoints(t *testing.T) { WatchSleepDuration = 2 * time.Millisecond ts := NewTestServer(t, []string{"test"}) defer ts.Close() test.CheckWatchEndPoints(context.Background(), t, ts) }
func TestWatchEndPoints(t *testing.T) { ctx := context.Background() ts := newTestServer(t, []string{"test"}) defer ts.Close() test.CheckWatchEndPoints(ctx, t, ts) }