Skip to content

Commit

Permalink
test(plc4go/spi): Ignore empty list elements insertions
Browse files Browse the repository at this point in the history
  • Loading branch information
sruehl committed Aug 31, 2024
1 parent a2b2a18 commit e2715a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plc4go/spi/testutils/TestUtils.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ func CompareResults(t *testing.T, actualString []byte, referenceString []byte) e
}
cleanDiff := make([]xdiff.Delta, 0)
for _, delta := range diff {
if delta.Operation == xdiff.Delete && delta.Subject.Value == nil || delta.Operation == xdiff.Insert && delta.Subject.Value == nil {
if delta.Operation == xdiff.Delete && delta.Subject.Value == nil || delta.Operation == xdiff.Insert && delta.Subject.Value == nil || delta.Operation == xdiff.InsertSubtree && delta.Subject.Value == nil {
localLog.Info().Interface("delta", delta).Msg("We ignore empty elements which should be deleted")
continue
}
Expand Down

0 comments on commit e2715a3

Please sign in to comment.