Merge pull request #121780 from HirazawaUi/fix-delete-collection-test-failed

fix test store delete collection function failed
This commit is contained in:
Kubernetes Prow Robot 2023-11-07 19:36:39 +01:00 committed by GitHub
commit f927d5b385
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2041,7 +2041,11 @@ func TestStoreDeleteCollection(t *testing.T) {
// and reduce the default page size to 2. // and reduce the default page size to 2.
storeWithCounter := &storageWithCounter{Interface: registry.Storage.Storage} storeWithCounter := &storageWithCounter{Interface: registry.Storage.Storage}
registry.Storage.Storage = storeWithCounter registry.Storage.Storage = storeWithCounter
originalDeleteCollectionPageSize := deleteCollectionPageSize
deleteCollectionPageSize = 2 deleteCollectionPageSize = 2
defer func() {
deleteCollectionPageSize = originalDeleteCollectionPageSize
}()
numPods := 10 numPods := 10
for i := 0; i < numPods; i++ { for i := 0; i < numPods; i++ {