Skip to content

Commit 3b85896

Browse files
author
VikramBedi
committed
fix unit tests
1 parent 519fe42 commit 3b85896

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

pkg/gateway/model_build_lattice_service_test.go

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package gateway
22

33
import (
44
"context"
5+
"sort"
56
"testing"
67

78
"github.com/aws/aws-application-networking-k8s/pkg/config"
@@ -1009,7 +1010,12 @@ func Test_LatticeServiceModelBuild(t *testing.T) {
10091010
assert.Equal(t, tt.expected.CustomerCertARN, svc.Spec.CustomerCertARN)
10101011
assert.Equal(t, tt.expected.CustomerDomainName, svc.Spec.CustomerDomainName)
10111012
assert.Equal(t, tt.expected.RouteType, svc.Spec.RouteType)
1012-
assert.Equal(t, tt.expected.ServiceNetworkNames, svc.Spec.ServiceNetworkNames)
1013+
1014+
expectedNetworkNames := append([]string{}, tt.expected.ServiceNetworkNames...)
1015+
actualNetworkNames := append([]string{}, svc.Spec.ServiceNetworkNames...)
1016+
sort.Strings(expectedNetworkNames)
1017+
sort.Strings(actualNetworkNames)
1018+
assert.Equal(t, expectedNetworkNames, actualNetworkNames)
10131019
})
10141020
}
10151021
}

0 commit comments

Comments
 (0)