fix - suppress nil/empty items from being added to slices

This commit is contained in:
2021-12-18 00:57:41 -05:00
parent fa3061ee7a
commit 3f4db5e82c
3 changed files with 26 additions and 15 deletions
+1
View File
@@ -148,6 +148,7 @@ func TestCollection_Label(t *testing.T) {
t.Fatalf("NewService failed: %v", err.Error())
}
t.Logf("Attempting to get label of collection: %v", defaultCollectionLabel)
if collection, err = svc.GetCollection(defaultCollectionLabel); err != nil {
t.Errorf(
"failed when fetching collection '%v': %v",