Fix broken tests for SQL storage driver

Signed-off-by: Dmitry Chepurovskiy <dm3ch@dm3ch.net>
Signed-off-by: Dmitry Chepurovskiy <me@dm3ch.net>
pull/10533/head
Dmitry Chepurovskiy 3 years ago committed by Dmitry Chepurovskiy
parent 95bb77c261
commit c7eedbd9c5
No known key found for this signature in database
GPG Key ID: 5B3A5FDCBFF9B3A4

@ -40,7 +40,6 @@ func releaseStub(name string, vers int, namespace string, status rspb.Status) *r
Version: vers,
Namespace: namespace,
Info: &rspb.Info{Status: status},
Labels: make(map[string]string),
}
}

@ -104,5 +104,10 @@ func filterSystemLabels(lbs map[string]string) map[string]string {
result[k] = v
}
}
// Workaround to make tests work while labels storage is not implemented for SQL storage driver
if len(result) == 0 {
return nil
}
return result
}

Loading…
Cancel
Save