Sorting the expected response for trafficsplit rows so it is always in consistent row order (#3280)

This commit is contained in:
Carol A. Scott 2019-08-19 11:10:26 -06:00 committed by Andrew Seigner
parent 99ddc66461
commit bc8fef7ba9
1 changed files with 3 additions and 0 deletions

View File

@ -350,6 +350,9 @@ func GenStatTsResponse(resName, resType string, resNs []string, basicStats bool,
}
}
// sort rows before returning in order to have a consistent order for tests
rows = sortTrafficSplitRows(rows)
resp := pb.StatSummaryResponse{
Response: &pb.StatSummaryResponse_Ok_{ // https://github.com/golang/protobuf/issues/205
Ok: &pb.StatSummaryResponse_Ok{