go-common/app/admin/main/videoup/service/monitor_test.go

34 lines
684 B
Go
Raw Normal View History

2019-04-22 10:49:16 +00:00
package service
import (
"context"
. "github.com/smartystreets/goconvey/convey"
"go-common/app/admin/main/videoup/model/monitor"
"testing"
)
func TestService_MonitorResult(t *testing.T) {
var (
c = context.TODO()
)
Convey("MonitorResult", t, WithService(func(s *Service) {
p := &monitor.RuleResultParams{
Type: 1,
Business: 1,
}
data, err := svr.MonitorResult(c, p)
So(err, ShouldBeNil)
So(data, ShouldNotBeNil)
}))
}
func TestService_MonitorCheckVideoStatus(t *testing.T) {
var (
c = context.TODO()
)
Convey("MonitorCheckVideoStatus", t, WithService(func(s *Service) {
err := svr.MonitorCheckVideoStatus(c, 1, 1)
So(err, ShouldBeNil)
}))
}