following_test.go 410 B

1234567891011121314151617181920
  1. package dao
  2. import (
  3. "go-common/app/job/main/relation/model"
  4. "testing"
  5. "github.com/smartystreets/goconvey/convey"
  6. )
  7. func TestDaoUpdateFollowingCache(t *testing.T) {
  8. var (
  9. r = &model.Relation{}
  10. )
  11. convey.Convey("UpdateFollowingCache", t, func(ctx convey.C) {
  12. err := d.UpdateFollowingCache(r)
  13. ctx.Convey("Then err should be nil.", func(ctx convey.C) {
  14. ctx.So(err, convey.ShouldBeNil)
  15. })
  16. })
  17. }