fix(controller,app): break loop when app is found
arcad/emissary/pipeline/head This commit looks good Details

This commit is contained in:
wpetit 2023-04-06 18:25:34 +02:00
parent 21173911fb
commit 47c2546d54
2 changed files with 7 additions and 0 deletions

View File

@ -205,6 +205,7 @@ func createResolveAppURL(specs *spec.Spec) (ResolveAppURLFunc, error) {
}
appEntry = &entry
break
}
if appEntry == nil {

View File

@ -15,6 +15,12 @@ func TestCreateResolveAppURL(t *testing.T) {
"app.arcad.test": {
Address: ":8080",
},
"app.arcad.foo": {
Address: ":8081",
},
"app.arcad.bar": {
Address: ":8082",
},
},
Config: &spec.Config{
AppURLResolving: &spec.AppURLResolving{