mirror of
https://github.com/go-micro/go-micro.git
synced 2024-12-30 10:10:44 +02:00
25 lines
416 B
Go
25 lines
416 B
Go
package client
|
|
|
|
import (
|
|
"os"
|
|
"testing"
|
|
)
|
|
|
|
func TestBasicCall(t *testing.T) {
|
|
if v := os.Getenv("IN_TRAVIS_CI"); v == "yes" {
|
|
return
|
|
}
|
|
|
|
response := map[string]interface{}{}
|
|
if err := NewClient(&Options{
|
|
Token: os.Getenv("TOKEN"),
|
|
}).Call("groups", "list", map[string]interface{}{
|
|
"memberId": "random",
|
|
}, &response); err != nil {
|
|
t.Fatal(err)
|
|
}
|
|
if len(response) > 0 {
|
|
t.Fatal(len(response))
|
|
}
|
|
}
|