mirror of https://github.com/linkerd/linkerd2.git
Sorting the expected response for trafficsplit rows so it is always in consistent row order (#3280)
This commit is contained in:
parent
99ddc66461
commit
bc8fef7ba9
|
@ -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{
|
resp := pb.StatSummaryResponse{
|
||||||
Response: &pb.StatSummaryResponse_Ok_{ // https://github.com/golang/protobuf/issues/205
|
Response: &pb.StatSummaryResponse_Ok_{ // https://github.com/golang/protobuf/issues/205
|
||||||
Ok: &pb.StatSummaryResponse_Ok{
|
Ok: &pb.StatSummaryResponse_Ok{
|
||||||
|
|
Loading…
Reference in New Issue