Skip to content

Commit b1bf9e9

Browse files
committed
Added List Resource to tests in getmetadata
1 parent a20cb35 commit b1bf9e9

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

internal/proto5server/server_getmetadata_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -806,6 +806,10 @@ func TestServerGetMetadata(t *testing.T) {
806806
return got.EphemeralResources[i].TypeName < got.EphemeralResources[j].TypeName
807807
})
808808

809+
sort.Slice(got.ListResources, func(i int, j int) bool {
810+
return got.ListResources[i].TypeName < got.ListResources[j].TypeName
811+
})
812+
809813
sort.Slice(got.Functions, func(i int, j int) bool {
810814
return got.Functions[i].Name < got.Functions[j].Name
811815
})

internal/proto6server/server_getmetadata_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -806,6 +806,10 @@ func TestServerGetMetadata(t *testing.T) {
806806
return got.EphemeralResources[i].TypeName < got.EphemeralResources[j].TypeName
807807
})
808808

809+
sort.Slice(got.ListResources, func(i int, j int) bool {
810+
return got.ListResources[i].TypeName < got.ListResources[j].TypeName
811+
})
812+
809813
sort.Slice(got.Functions, func(i int, j int) bool {
810814
return got.Functions[i].Name < got.Functions[j].Name
811815
})

0 commit comments

Comments
 (0)