rpc_test.go 354 B

123456789101112131415161718192021
  1. package service
  2. import (
  3. "context"
  4. "testing"
  5. . "github.com/smartystreets/goconvey/convey"
  6. )
  7. func Test_ArcsRPC(t *testing.T) {
  8. Convey("ArcsRPC", t, func() {
  9. var (
  10. aids = []int64{123, 345}
  11. )
  12. res, err := s.ArcsRPC(context.TODO(), aids)
  13. t.Logf("res:%+v", res)
  14. t.Logf("err:%+v", err)
  15. So(res, ShouldNotBeNil)
  16. So(err, ShouldBeNil)
  17. })
  18. }