go-common/app/job/main/dm2/service/dm_test.go

19 lines
347 B
Go
Raw Normal View History

2019-04-22 10:49:16 +00:00
package service
import (
"context"
"testing"
. "github.com/smartystreets/goconvey/convey"
)
func TestDMSCache(t *testing.T) {
Convey("should return dms and nil", t, func() {
dms, err := svr.dms(context.TODO(), 1, 1221, 1, 0)
So(err, ShouldBeNil)
Convey("dms shoule not be empty", func() {
So(len(dms), ShouldNotBeEmpty)
})
})
}