go-common/app/interface/live/push-live/dao/config_test.go
2019-04-22 18:49:16 +08:00

27 lines
537 B
Go

package dao
import (
"context"
"testing"
. "github.com/smartystreets/goconvey/convey"
)
func Test_config(t *testing.T) {
initd()
Convey("Test config get", t, func() {
cf, err := d.GetPushConfig(context.TODO())
t.Logf("the result included(%v) err(%v)", cf, err)
So(err, ShouldEqual, nil)
})
}
func Test_GetPushInterval(t *testing.T) {
initd()
Convey("Test GetPushInterval", t, func() {
cf, err := d.GetPushInterval(context.TODO())
t.Logf("the result included(%v) err(%v)", cf, err)
So(err, ShouldEqual, nil)
})
}