mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-05 23:47:50 +00:00
Reuse TCP connections in Reflector between resync periods.
This commit is contained in:
2
pkg/client/cache/listwatch_test.go
vendored
2
pkg/client/cache/listwatch_test.go
vendored
@@ -165,7 +165,7 @@ func TestListWatchesCanWatch(t *testing.T) {
|
||||
client := client.NewOrDie(&client.Config{Host: server.URL, Version: testapi.Default.Version()})
|
||||
lw := NewListWatchFromClient(client, item.resource, item.namespace, item.fieldSelector)
|
||||
// This test merely tests that the correct request is made.
|
||||
lw.Watch(item.rv)
|
||||
lw.Watch(api.ListOptions{ResourceVersion: item.rv})
|
||||
handler.ValidateRequest(t, item.location, "GET", nil)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user