dm_sepcial_test.go 720 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. package service
  2. import (
  3. "context"
  4. "fmt"
  5. "testing"
  6. . "github.com/smartystreets/goconvey/convey"
  7. )
  8. // func TestSpecialDmRemove(t *testing.T) {
  9. // Convey("", t, func() {
  10. // dmid := int64(920249977)
  11. // dm := &model.DM{
  12. // ID: dmid,
  13. // Type: 1,
  14. // Oid: 19,
  15. // Mid: 1,
  16. // State: 1,
  17. // Pool: 2,
  18. // Progress: 10,
  19. // }
  20. // _, err := testSvc.dao.UpdateDM(context.TODO(), dm)
  21. // if err != nil {
  22. // fmt.Println(err)
  23. // }
  24. // So(err, ShouldBeNil)
  25. // })
  26. // }
  27. func TestSpecialLocationUpdate(t *testing.T) {
  28. Convey("", t, func() {
  29. err := svr.specialLocationUpdate(context.TODO(), 1, 19)
  30. if err != nil {
  31. fmt.Println(err)
  32. }
  33. So(err, ShouldBeNil)
  34. })
  35. }