Clean up failure cases
Signed-off-by: James Hewitt <james.hewitt@uk.ibm.com>
This commit is contained in:
parent
6deeec4699
commit
e680634060
1 changed files with 5 additions and 1 deletions
|
@ -152,7 +152,11 @@ func TestCatalogInParts(t *testing.T) {
|
|||
lastRepo = p[len(p)-1]
|
||||
numFilled, err = env.registry.Repositories(env.ctx, p, lastRepo)
|
||||
|
||||
if err != io.EOF || numFilled != len(p) {
|
||||
if numFilled != len(p) {
|
||||
t.Errorf("Expected more values in catalog")
|
||||
}
|
||||
|
||||
if err != io.EOF {
|
||||
t.Errorf("Expected end of catalog")
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue