config_test.go 537 B

1234567891011121314151617181920212223242526
  1. package dao
  2. import (
  3. "context"
  4. "testing"
  5. . "github.com/smartystreets/goconvey/convey"
  6. )
  7. func Test_config(t *testing.T) {
  8. initd()
  9. Convey("Test config get", t, func() {
  10. cf, err := d.GetPushConfig(context.TODO())
  11. t.Logf("the result included(%v) err(%v)", cf, err)
  12. So(err, ShouldEqual, nil)
  13. })
  14. }
  15. func Test_GetPushInterval(t *testing.T) {
  16. initd()
  17. Convey("Test GetPushInterval", t, func() {
  18. cf, err := d.GetPushInterval(context.TODO())
  19. t.Logf("the result included(%v) err(%v)", cf, err)
  20. So(err, ShouldEqual, nil)
  21. })
  22. }