mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-25 20:53:33 +00:00
Merge pull request #111171 from MadhavJivrajani/conversion-fix
cacher: Use PodList type for use in GetList
This commit is contained in:
commit
98aab0a00d
@ -647,10 +647,11 @@ func TestCacheDontAcceptRequestsStopped(t *testing.T) {
|
|||||||
t.Fatalf("Success to create Get: %v", err)
|
t.Fatalf("Success to create Get: %v", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
listResult := &example.PodList{}
|
||||||
err = cacher.GetList(context.TODO(), "pods/ns", storage.ListOptions{
|
err = cacher.GetList(context.TODO(), "pods/ns", storage.ListOptions{
|
||||||
ResourceVersion: "1",
|
ResourceVersion: "1",
|
||||||
Recursive: true,
|
Recursive: true,
|
||||||
}, result)
|
}, listResult)
|
||||||
if err == nil {
|
if err == nil {
|
||||||
t.Fatalf("Success to create GetList: %v", err)
|
t.Fatalf("Success to create GetList: %v", err)
|
||||||
}
|
}
|
||||||
@ -660,7 +661,6 @@ func TestCacheDontAcceptRequestsStopped(t *testing.T) {
|
|||||||
case <-time.After(wait.ForeverTestTimeout):
|
case <-time.After(wait.ForeverTestTimeout):
|
||||||
t.Errorf("timed out waiting for watch to close")
|
t.Errorf("timed out waiting for watch to close")
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestTimeBucketWatchersBasic(t *testing.T) {
|
func TestTimeBucketWatchersBasic(t *testing.T) {
|
||||||
|
Loading…
Reference in New Issue
Block a user