Deflake TestGetListNonRecursive

This commit is contained in:
Wojciech Tyczyński 2023-03-29 13:46:49 +02:00
parent c3e7eca7fd
commit 05f4e497f1

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,
}, {