Skip to content

Commit

Permalink
Handle errors returned from ErrorFunction in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
muesli committed Aug 10, 2020
1 parent 0c24414 commit 7585934
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions verify_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ func TestVerifyRepo(t *testing.T) {
}
}

tt.ErrorFunction(dir)
err = tt.ErrorFunction(dir)
if err != nil {
t.Errorf("Failed during error/destructive function: %s", err)
return
Expand Down Expand Up @@ -235,7 +235,7 @@ func TestVerifyVolume(t *testing.T) {
volumeOriginal = vol
}

tt.ErrorFunction(dir)
err = tt.ErrorFunction(dir)
if err != nil {
t.Errorf("Failed during error/destructive function: %s", err)
return
Expand Down Expand Up @@ -338,7 +338,7 @@ func TestVerifySnapshot(t *testing.T) {
snapshotOriginal = snapshot
}

tt.ErrorFunction(dir)
err = tt.ErrorFunction(dir)
if err != nil {
t.Errorf("Failed during error/destructive function: %s", err)
return
Expand Down

0 comments on commit 7585934

Please sign in to comment.