mirror of
https://github.com/optim-enterprises-bv/kubernetes.git
synced 2025-12-03 23:03:53 +00:00
@@ -680,9 +680,8 @@ func testCacherSendBookmarkEvents(t *testing.T, allowWatchBookmarks, expectedBoo
|
|||||||
resourceVersion := uint64(1000)
|
resourceVersion := uint64(1000)
|
||||||
go func() {
|
go func() {
|
||||||
deadline := time.Now().Add(time.Second)
|
deadline := time.Now().Add(time.Second)
|
||||||
var err error
|
|
||||||
for i := 0; time.Now().Before(deadline); i++ {
|
for i := 0; time.Now().Before(deadline); i++ {
|
||||||
err = cacher.watchCache.Add(&examplev1.Pod{
|
err := cacher.watchCache.Add(&examplev1.Pod{
|
||||||
ObjectMeta: metav1.ObjectMeta{
|
ObjectMeta: metav1.ObjectMeta{
|
||||||
Name: fmt.Sprintf("pod-%d", i),
|
Name: fmt.Sprintf("pod-%d", i),
|
||||||
Namespace: "ns",
|
Namespace: "ns",
|
||||||
|
|||||||
Reference in New Issue
Block a user