Skip to content

Commit

Permalink
fix: change handling of responses without url to respond to
Browse files Browse the repository at this point in the history
  • Loading branch information
stebenz committed Nov 16, 2023
1 parent 3b513b4 commit 0afe35b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pkg/provider/xml/xml_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package xml_test

import (
"slices"
"reflect"
"testing"

"github.com/zitadel/saml/pkg/provider/xml"
Expand Down Expand Up @@ -31,7 +31,6 @@ func Test_XmlMarshal(t *testing.T) {
},
},
}

for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
xmlStruct := XML{InnerXml: tt.arg}
Expand All @@ -42,7 +41,7 @@ func Test_XmlMarshal(t *testing.T) {
return
}

if !slices.Equal(xmlData, tt.res.metadata) {
if !reflect.DeepEqual(tt.res.metadata, xmlData) {
t.Errorf("Marshal() error expected: %v, got %v", tt.res.metadata, xmlData)
return
}
Expand Down

0 comments on commit 0afe35b

Please sign in to comment.