blocked_test.go 321 B

1234567891011121314151617181920
  1. package service
  2. import (
  3. "context"
  4. "testing"
  5. . "github.com/smartystreets/goconvey/convey"
  6. )
  7. func Test_CheckBlock(t *testing.T) {
  8. var (
  9. c = context.TODO()
  10. )
  11. mid := int64(304)
  12. Convey("should return err be nil", t, func() {
  13. ok, err := s.CheckBlock(c, mid)
  14. So(err, ShouldBeNil)
  15. So(ok, ShouldNotBeNil)
  16. })
  17. }