mirror of
https://github.com/kubernetes/kubernetes.git
synced 2026-05-28 04:04:39 -04:00
Merge pull request #135840 from michaelasp/makeDeterministic
Fix issue with TestReplaceEvents not sending history deterministically
This commit is contained in:
commit
09ca6040f7
1 changed files with 3 additions and 0 deletions
|
|
@ -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")
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue