Skip to content

Commit

Permalink
fix(test): the attribute filter transform test correctly compares sli…
Browse files Browse the repository at this point in the history
…ces now (#7931)

Signed-off-by: Calum Murray <cmurray@redhat.com>
  • Loading branch information
Cali0707 committed May 21, 2024
1 parent 5355171 commit 0e14da4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkg/graph/transforms_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,11 @@ func TestAttributeFilterTransform(t *testing.T) {
t.Run(test.name, func(t *testing.T) {
transform := AttributesFilterTransform{Filter: &eventingv1.TriggerFilter{Attributes: test.filterAttributes}}
out, _ := transform.Apply(test.input, TransformFunctionContext{})
assert.Equal(t, test.expected, out)
if test.expected == nil {
assert.Nil(t, out)
} else {
assert.ElementsMatch(t, test.expected.Spec.Attributes, out.Spec.Attributes)
}
})
}
}

0 comments on commit 0e14da4

Please sign in to comment.