Skip to content

Commit 3287372

Browse files
committed
lint: Add missing error checks
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
1 parent 828909f commit 3287372

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

internal/acceptance/openstack/blockstorage/v3/blockstorage.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -789,7 +789,7 @@ func Unmanage(t *testing.T, client *gophercloud.ServiceClient, volume *volumes.V
789789
return err
790790
}
791791

792-
gophercloud.WaitFor(context.TODO(), func(ctx context.Context) (bool, error) {
792+
err = gophercloud.WaitFor(context.TODO(), func(ctx context.Context) (bool, error) {
793793
if _, err := volumes.Get(ctx, client, volume.ID).Extract(); err != nil {
794794
if _, ok := err.(gophercloud.ErrResourceNotFound); ok {
795795
return true, nil
@@ -798,6 +798,9 @@ func Unmanage(t *testing.T, client *gophercloud.ServiceClient, volume *volumes.V
798798
}
799799
return false, nil
800800
})
801+
if err != nil {
802+
return err
803+
}
801804

802805
t.Logf("Successfully unmanaged volume %s", volume.ID)
803806

0 commit comments

Comments
 (0)