Merge pull request #135840 from michaelasp/makeDeterministic

Fix issue with TestReplaceEvents not sending history deterministically
This commit is contained in:
Kubernetes Prow Robot 2025-12-18 20:16:32 -08:00 committed by GitHub
commit 09ca6040f7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -995,6 +995,9 @@ func testReplaceEvents(t *testing.T, ctx context.Context, fifo Queue, m *eventRe
for _, tc := range tcs {
t.Run(tc.name, func(t *testing.T) {
// Clear history so we don't get noise from previous tests.
m.clearHistory()
for _, obj := range tc.initialObjs {
require.NoError(t, fifo.Add(obj), "failed to add")
}