bilibili-backup/app/admin/main/apm/dao/pprof_test.go

19 lines
354 B
Go
Raw Normal View History

2019-04-22 10:59:20 +08:00
package dao
import (
"context"
"testing"
"github.com/smartystreets/goconvey/convey"
)
func TestDaoInstance(t *testing.T) {
convey.Convey("Instance", t, func() {
var appName = "main.app-svr.app-view"
ins, err := d.Instances(context.Background(), appName)
convey.So(err, convey.ShouldBeNil)
convey.So(ins, convey.ShouldNotEqual, nil)
})
}