mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-08 03:33:56 +00:00
Merge pull request #121780 from HirazawaUi/fix-delete-collection-test-failed
fix test store delete collection function failed
This commit is contained in:
commit
f927d5b385
@ -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++ {
|
||||||
|
Loading…
Reference in New Issue
Block a user