award_test.go 263 B

12345678910111213141516
  1. package service
  2. import (
  3. "context"
  4. "testing"
  5. "time"
  6. . "github.com/smartystreets/goconvey/convey"
  7. )
  8. func TestAward(t *testing.T) {
  9. Convey("award", t, func() {
  10. err := s.award(context.TODO(), 1, time.Now().Unix(), "127.0.0.1")
  11. So(err, ShouldBeNil)
  12. })
  13. }