mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-06 18:54:06 +00:00
fix test store delete collection function failed
This commit is contained in:
parent
246d363ea4
commit
b12db6d9b5
@ -2041,7 +2041,11 @@ func TestStoreDeleteCollection(t *testing.T) {
|
||||
// and reduce the default page size to 2.
|
||||
storeWithCounter := &storageWithCounter{Interface: registry.Storage.Storage}
|
||||
registry.Storage.Storage = storeWithCounter
|
||||
originalDeleteCollectionPageSize := deleteCollectionPageSize
|
||||
deleteCollectionPageSize = 2
|
||||
defer func() {
|
||||
deleteCollectionPageSize = originalDeleteCollectionPageSize
|
||||
}()
|
||||
|
||||
numPods := 10
|
||||
for i := 0; i < numPods; i++ {
|
||||
|
Loading…
Reference in New Issue
Block a user