@@ -49,7 +49,7 @@ func testIngress(name string, annotations map[string]string, hosts ...string) *t
4949
5050func lookupApp (service * KubernetesService , domain string ) * model.App {
5151 var app * model.App
52- service .getEntry (domain , func (name string , candidate * model.App ) bool {
52+ service .getEntry (func (name string , candidate * model.App ) bool {
5353 if candidate .Config .Domain == domain || strings .HasPrefix (domain , name + "." ) {
5454 app = candidate
5555 return true
@@ -175,7 +175,6 @@ func TestKubernetesServiceLookup(t *testing.T) {
175175 }{
176176 {"Returns a matching app when connected" , true , "app.example.com" , true },
177177 {"Skips the cache before the service is connected" , false , "app.example.com" , false },
178- {"Skips an invalid domain" , true , "app.example.com\xC3 \xA9 " , false },
179178 }
180179
181180 for _ , test := range tests {
@@ -188,7 +187,7 @@ func TestKubernetesServiceLookup(t *testing.T) {
188187 }})
189188
190189 var app * model.App
191- err := service .Lookup (test . domain , func (_ string , candidate * model.App ) bool {
190+ err := service .Lookup (func (_ string , candidate * model.App ) bool {
192191 app = candidate
193192 return true
194193 })
0 commit comments