Skip to content

Commit b1fc5b8

Browse files
committed
test(app): 变量使用前先判断
1 parent bbffd03 commit b1fc5b8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

app/app_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ func TestSignalHUP(t *testing.T) {
4545
exit <- struct{}{}
4646
}()
4747
time.Sleep(500 * time.Millisecond) // 等待 go func 启动完成
48+
a.NotNil(cmd.app).
49+
NotNil(cmd.app.srv)
4850

4951
p, err := os.FindProcess(os.Getpid())
5052
a.NotError(err).NotNil(p)

0 commit comments

Comments
 (0)