Merge pull request #116987 from wojtek-t/fix_non_recursive_list_test

Deflake TestGetListNonRecursive
This commit is contained in:
Kubernetes Prow Robot 2023-04-11 19:17:30 -07:00 committed by GitHub
commit 01c0495463
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1304,13 +1304,13 @@ func RunTestGetListNonRecursive(ctx context.Context, t *testing.T, store storage
name: "existing key, resourceVersion=0",
key: key,
pred: storage.Everything,
expectedAlternatives: [][]example.Pod{{}, {*storedObj}},
expectedAlternatives: [][]example.Pod{{}, {*prevStoredObj}, {*storedObj}},
rv: "0",
}, {
name: "existing key, resourceVersion=0, resourceVersionMatch=notOlderThan",
key: key,
pred: storage.Everything,
expectedAlternatives: [][]example.Pod{{}, {*storedObj}},
expectedAlternatives: [][]example.Pod{{}, {*prevStoredObj}, {*storedObj}},
rv: "0",
rvMatch: metav1.ResourceVersionMatchNotOlderThan,
}, {