blacklist_test.go 721 B

1234567891011121314151617181920212223242526272829303132
  1. package service
  2. import (
  3. "context"
  4. "testing"
  5. . "github.com/smartystreets/goconvey/convey"
  6. )
  7. func Test_InitBlacklistMID(t *testing.T) {
  8. Convey("growup-job InitBlacklistMID", t, WithService(func(s *Service) {
  9. err := s.InitBlacklistMID(context.Background())
  10. So(err, ShouldBeNil)
  11. }))
  12. }
  13. func Test_UpdateBlacklist(t *testing.T) {
  14. Convey("growup-job UpdateBlacklist", t, WithService(func(s *Service) {
  15. err := s.UpdateBlacklist(context.Background())
  16. So(err, ShouldBeNil)
  17. }))
  18. }
  19. func Test_GetAvsMID(t *testing.T) {
  20. Convey("growup-job GetAvsMID", t, WithService(func(s *Service) {
  21. var (
  22. avs = []int64{int64(1), int64(2)}
  23. )
  24. _, err := s.GetAvsMID(context.Background(), avs)
  25. So(err, ShouldBeNil)
  26. }))
  27. }