@@ -462,7 +462,7 @@ func TestWaitUntilFreshAndList(t *testing.T) {
462
462
}()
463
463
464
464
// list by empty MatchValues.
465
- list , resourceVersion , indexUsed , err := store .WaitUntilFreshAndList (ctx , 5 , nil )
465
+ list , resourceVersion , indexUsed , err := store .WaitUntilFreshAndList (ctx , 5 , "prefix/" , nil )
466
466
if err != nil {
467
467
t .Fatalf ("unexpected error: %v" , err )
468
468
}
@@ -481,7 +481,7 @@ func TestWaitUntilFreshAndList(t *testing.T) {
481
481
{IndexName : "l:label" , Value : "value1" },
482
482
{IndexName : "f:spec.nodeName" , Value : "node2" },
483
483
}
484
- list , resourceVersion , indexUsed , err = store .WaitUntilFreshAndList (ctx , 5 , matchValues )
484
+ list , resourceVersion , indexUsed , err = store .WaitUntilFreshAndList (ctx , 5 , "prefix/" , matchValues )
485
485
if err != nil {
486
486
t .Fatalf ("unexpected error: %v" , err )
487
487
}
@@ -500,7 +500,7 @@ func TestWaitUntilFreshAndList(t *testing.T) {
500
500
{IndexName : "l:not-exist-label" , Value : "whatever" },
501
501
{IndexName : "f:spec.nodeName" , Value : "node2" },
502
502
}
503
- list , resourceVersion , indexUsed , err = store .WaitUntilFreshAndList (ctx , 5 , matchValues )
503
+ list , resourceVersion , indexUsed , err = store .WaitUntilFreshAndList (ctx , 5 , "prefix/" , matchValues )
504
504
if err != nil {
505
505
t .Fatalf ("unexpected error: %v" , err )
506
506
}
@@ -518,7 +518,7 @@ func TestWaitUntilFreshAndList(t *testing.T) {
518
518
matchValues = []storage.MatchValue {
519
519
{IndexName : "l:not-exist-label" , Value : "whatever" },
520
520
}
521
- list , resourceVersion , indexUsed , err = store .WaitUntilFreshAndList (ctx , 5 , matchValues )
521
+ list , resourceVersion , indexUsed , err = store .WaitUntilFreshAndList (ctx , 5 , "prefix/" , matchValues )
522
522
if err != nil {
523
523
t .Fatalf ("unexpected error: %v" , err )
524
524
}
@@ -546,7 +546,7 @@ func TestWaitUntilFreshAndListFromCache(t *testing.T) {
546
546
}()
547
547
548
548
// list from future revision. Requires watch cache to request bookmark to get it.
549
- list , resourceVersion , indexUsed , err := store .WaitUntilFreshAndList (ctx , 3 , nil )
549
+ list , resourceVersion , indexUsed , err := store .WaitUntilFreshAndList (ctx , 3 , "prefix/" , nil )
550
550
if err != nil {
551
551
t .Fatalf ("unexpected error: %v" , err )
552
552
}
@@ -626,7 +626,7 @@ func TestWaitUntilFreshAndListTimeout(t *testing.T) {
626
626
store .Add (makeTestPod ("bar" , 4 ))
627
627
}()
628
628
629
- _ , _ , _ , err := store .WaitUntilFreshAndList (ctx , 4 , nil )
629
+ _ , _ , _ , err := store .WaitUntilFreshAndList (ctx , 4 , "" , nil )
630
630
if ! errors .IsTimeout (err ) {
631
631
t .Errorf ("expected timeout error but got: %v" , err )
632
632
}
@@ -655,7 +655,7 @@ func TestReflectorForWatchCache(t *testing.T) {
655
655
defer store .Stop ()
656
656
657
657
{
658
- _ , version , _ , err := store .WaitUntilFreshAndList (ctx , 0 , nil )
658
+ _ , version , _ , err := store .WaitUntilFreshAndList (ctx , 0 , "" , nil )
659
659
if err != nil {
660
660
t .Fatalf ("unexpected error: %v" , err )
661
661
}
@@ -678,7 +678,7 @@ func TestReflectorForWatchCache(t *testing.T) {
678
678
r .ListAndWatch (wait .NeverStop )
679
679
680
680
{
681
- _ , version , _ , err := store .WaitUntilFreshAndList (ctx , 10 , nil )
681
+ _ , version , _ , err := store .WaitUntilFreshAndList (ctx , 10 , "" , nil )
682
682
if err != nil {
683
683
t .Fatalf ("unexpected error: %v" , err )
684
684
}
0 commit comments