added test to check for resources with the same name in different layers

This commit is contained in:
Natasha Sarkar
2021-02-05 12:05:04 -08:00
parent 384b71b5f5
commit cb400c895e
2 changed files with 143 additions and 1 deletions

View File

@@ -216,7 +216,7 @@ func demandOneMatch(
return r[0], nil
}
if len(r) > 1 {
return nil, fmt.Errorf("multiple matches for %sId %s", s, id)
return nil, fmt.Errorf("multiple matches for %s %s", s, id)
}
return nil, fmt.Errorf("no matches for %sId %s", s, id)
}