mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-05-31 10:14:15 +00:00
13 lines
272 B
Go
13 lines
272 B
Go
|
|
package job
|
||
|
|
|
||
|
|
import "testing"
|
||
|
|
|
||
|
|
func TestCheckHashStorageJob_RunWithoutPanicWhenStorageNil(t *testing.T) {
|
||
|
|
defer func() {
|
||
|
|
if r := recover(); r != nil {
|
||
|
|
t.Fatalf("CheckHashStorageJob.Run panicked when storage is nil: %v", r)
|
||
|
|
}
|
||
|
|
}()
|
||
|
|
NewCheckHashStorageJob().Run()
|
||
|
|
}
|