Skip to content

Commit

Permalink
internal/fwserver: Prevent false positives with GetMetadataResponse.F…
Browse files Browse the repository at this point in the history
…unctions
  • Loading branch information
bflad committed Dec 15, 2023
1 parent eec0477 commit b2f1c6f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/fwserver/server_getmetadata_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -476,6 +476,10 @@ func TestServerGetMetadata(t *testing.T) {
return response.DataSources[i].TypeName < response.DataSources[j].TypeName
})

sort.Slice(response.Functions, func(i int, j int) bool {
return response.Functions[i].Name < response.Functions[j].Name
})

sort.Slice(response.Resources, func(i int, j int) bool {
return response.Resources[i].TypeName < response.Resources[j].TypeName
})
Expand Down

0 comments on commit b2f1c6f

Please sign in to comment.