refactor: no rate limits must return nil.

This commit is contained in:
Fernandez Ludovic 2017-12-21 17:19:42 +01:00 committed by Traefiker
parent 987e8a93bd
commit aeffe1036d
2 changed files with 11 additions and 1 deletions

View file

@ -1118,6 +1118,12 @@ func TestParseRateSets(t *testing.T) {
},
},
},
{
desc: "no rate limits labels",
labels: map[string]string{},
expected: nil,
},
}
for _, test := range testCases {