Skip to content

Commit

Permalink
Abort when no backends are enabled in storage test
Browse files Browse the repository at this point in the history
  • Loading branch information
muesli committed Apr 21, 2020
1 parent e2136c9 commit da37068
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions storage/storage_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,9 @@ func TestMain(m *testing.M) {
})
}

if len(testBackends) == 0 {
panic("no backends enabled")
}
os.Exit(m.Run())
}

Expand Down

0 comments on commit da37068

Please sign in to comment.