mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 19:31:44 +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:
parent
c746dd8df5
commit
c6dd6cb410
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user