clean_cache_test.go 554 B

12345678910111213141516171819202122232425
  1. package dao
  2. import (
  3. "context"
  4. "testing"
  5. "github.com/smartystreets/goconvey/convey"
  6. )
  7. func TestDaoAsoCleanCache(t *testing.T) {
  8. convey.Convey("AsoCleanCache", t, func(ctx convey.C) {
  9. var (
  10. c = context.Background()
  11. token = ""
  12. session = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
  13. mid = int64(1)
  14. )
  15. ctx.Convey("When everything gose positive", func(ctx convey.C) {
  16. err := d.AsoCleanCache(c, token, session, mid)
  17. ctx.Convey("Then err should be nil.", func(ctx convey.C) {
  18. ctx.So(err, convey.ShouldBeNil)
  19. })
  20. })
  21. })
  22. }