check_hash_storage_test.go 272 B

123456789101112
  1. package job
  2. import "testing"
  3. func TestCheckHashStorageJob_RunWithoutPanicWhenStorageNil(t *testing.T) {
  4. defer func() {
  5. if r := recover(); r != nil {
  6. t.Fatalf("CheckHashStorageJob.Run panicked when storage is nil: %v", r)
  7. }
  8. }()
  9. NewCheckHashStorageJob().Run()
  10. }