bfs_test.go 394 B

123456789101112131415161718
  1. package dao
  2. import (
  3. "context"
  4. "testing"
  5. . "github.com/smartystreets/goconvey/convey"
  6. )
  7. func TestDao_DelImage(t *testing.T) {
  8. Convey("DelImage", t, func() {
  9. Convey("when not exist, err should not nil", func() {
  10. // FIXME : 该UT不可重入
  11. err := d.DelImage(context.Background(), "130d0e4aa718fcab4abd3ad756ef57017e42bcf4.png", d.c.FaceBFS)
  12. So(err, ShouldNotBeNil)
  13. })
  14. })
  15. }