cleanup: remove event list

This commit is contained in:
Kensei Nakada
2024-10-02 12:24:03 +09:00
parent b1b4e5d397
commit 83f9e4b6df
15 changed files with 528 additions and 482 deletions

View File

@@ -23,6 +23,7 @@ import (
"testing"
"github.com/google/go-cmp/cmp"
"github.com/google/go-cmp/cmp/cmpopts"
"github.com/stretchr/testify/require"
v1 "k8s.io/api/core/v1"
@@ -1204,7 +1205,7 @@ func TestEventsToRegister(t *testing.T) {
for i := range actualClusterEvents {
actualClusterEvents[i].QueueingHintFn = nil
}
if diff := cmp.Diff(test.expectedClusterEvents, actualClusterEvents); diff != "" {
if diff := cmp.Diff(test.expectedClusterEvents, actualClusterEvents, cmpopts.EquateComparable(framework.ClusterEvent{})); diff != "" {
t.Error("Cluster Events doesn't match extected events (-expected +actual):\n", diff)
}
})