mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-06 03:33:26 +00:00
Stable comparison of stuff that transits through map.
There are probably more of these in the codebase. Looks like this happens with the go tip via travis.
This commit is contained in:
@@ -122,11 +122,8 @@ func TestListPodsLabels(t *testing.T) {
|
||||
fakeHandler.ValidateRequest(t, makeUrl("/pods"), "GET", nil)
|
||||
queryString := fakeHandler.RequestReceived.URL.Query().Get("labels")
|
||||
queryString, _ = url.QueryUnescape(queryString)
|
||||
// TODO(bburns) : This assumes some ordering in serialization that might not always
|
||||
// be true, parse it into a map.
|
||||
if queryString != "foo=bar,name=baz" {
|
||||
t.Errorf("Unexpected label query: %s", queryString)
|
||||
}
|
||||
parsedQueryString := DecodeLabelQuery(queryString)
|
||||
expectEqual(t, query, parsedQueryString)
|
||||
if err != nil {
|
||||
t.Errorf("Unexpected error in listing pods: %#v", err)
|
||||
}
|
||||
|
Reference in New Issue
Block a user