fix test store delete collection function failed

This commit is contained in:
HirazawaUi 2023-11-08 00:07:45 +08:00
parent 246d363ea4
commit b12db6d9b5

View File

@ -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++ {