test: abort if Create() fails

This commit is contained in:
Maurizio Porrato 2021-05-17 16:49:32 +01:00
parent 08c98588f6
commit aaf57943fc
Signed by: guru
GPG Key ID: C622977DF024AC24
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ func testStoreHelper(t *testing.T, drv StoreDriver) {
t.Errorf("Create() failed (%v)", e1)
}
if t1 == nil {
t.Error("Create() returned nil result")
t.Fatal("Create() returned nil result")
}
idOk, err := regexp.MatchString("^[[:xdigit:]]{32}$", t1.ID)
if err != nil {