package actuator /* @Time : 2021/10/25 下午7:07 @Author : Zhouyc */ import ( "log" "testing" ) func TestLaunch(t *testing.T) { timeout:=5 out,err:=launch("../shells/3s.sh",timeout) if err!=nil{ t.Error(err) } log.Print(out) out,err=launch("../shells/10s.sh",timeout) if err!=nil { if err.Error() != "sh script timeout" { t.Error(err) } } log.Print(out) }