pprof_test.go 354 B

123456789101112131415161718
  1. package dao
  2. import (
  3. "context"
  4. "testing"
  5. "github.com/smartystreets/goconvey/convey"
  6. )
  7. func TestDaoInstance(t *testing.T) {
  8. convey.Convey("Instance", t, func() {
  9. var appName = "main.app-svr.app-view"
  10. ins, err := d.Instances(context.Background(), appName)
  11. convey.So(err, convey.ShouldBeNil)
  12. convey.So(ins, convey.ShouldNotEqual, nil)
  13. })
  14. }