...
|
...
|
@@ -10,9 +10,11 @@ const ( |
|
|
IM_APP_SECRET = "9c5b60346613" //"67ea92e1ea45"
|
|
|
)
|
|
|
|
|
|
var accid = "18860183051"
|
|
|
|
|
|
func TestCallCreate(t *testing.T) {
|
|
|
InitImClient(IM_SERVICE_ADDRESS, IM_APP_KEY, IM_APP_SECRET)
|
|
|
token, err := CallCreate(UserCreate{Accid: "1"})
|
|
|
token, err := CallCreate(UserCreate{Accid: accid})
|
|
|
if err != nil {
|
|
|
t.Fatal(err)
|
|
|
}
|
...
|
...
|
@@ -24,7 +26,7 @@ func TestCallCreate(t *testing.T) { |
|
|
|
|
|
func TestCallRefreshToken(t *testing.T) {
|
|
|
InitImClient(IM_SERVICE_ADDRESS, IM_APP_KEY, IM_APP_SECRET)
|
|
|
token, err := CallRefreshToken(UserRefreshToken{Accid: "1"})
|
|
|
token, err := CallRefreshToken(UserRefreshToken{Accid: accid})
|
|
|
if err != nil {
|
|
|
t.Fatal(err)
|
|
|
}
|
...
|
...
|
@@ -36,7 +38,7 @@ func TestCallRefreshToken(t *testing.T) { |
|
|
|
|
|
func TestCallUpdate(t *testing.T) {
|
|
|
InitImClient(IM_SERVICE_ADDRESS, IM_APP_KEY, IM_APP_SECRET)
|
|
|
token, err := CallUpdate(UserUpdate{Accid: "1", Name: "tip tok"})
|
|
|
token, err := CallUpdate(UserUpdate{Accid: accid, Name: "tip tok"})
|
|
|
if err != nil {
|
|
|
t.Fatal(err)
|
|
|
}
|
...
|
...
|
|