fixing various race conditions and errors after refactoring

This commit is contained in:
2021-12-13 05:34:53 -05:00
parent 6dba963608
commit 0767e9c0c1
6 changed files with 75 additions and 91 deletions

View File

@@ -46,6 +46,9 @@ func TestItem(t *testing.T) {
if item, err = collection.CreateItem(testItemLabel, itemAttrs, secret, true); err != nil {
t.Errorf("could not create item %v in collection '%v': %v", testItemLabel, collectionName.String(), err.Error())
if err = collection.Delete(); err != nil {
t.Errorf("could not delete collection '%v': %v", collectionName.String(), err.Error())
}
if err = svc.Close(); err != nil {
t.Fatalf("could not close Service.Session: %v", err.Error())
}