mirror of
https://github.com/kubernetes/client-go.git
synced 2026-05-15 03:33:11 +00:00
Fix issue with test not sending history deterministically
Kubernetes-commit: 2b330f0357cb825de0dc196b426c858b2bba7f2c
This commit is contained in:
committed by
Kubernetes Publisher
parent
66d2ca7fea
commit
e07f72a3ec
3
tools/cache/controller_test.go
vendored
3
tools/cache/controller_test.go
vendored
@@ -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")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user