24 lines
392 B
Go
24 lines
392 B
Go
package rpc
|
|
|
|
import (
|
|
"context"
|
|
"testing"
|
|
|
|
"github.com/nose7en/ToyBoomServer/config"
|
|
)
|
|
|
|
const token = "c2fa05395f0974b798d7d9ae802a17bae.0.srvuz.8c3w4pp04rFe9CXbrtNxVg"
|
|
|
|
func TestAppleClient_VerifyAppToken(t *testing.T) {
|
|
|
|
config.InitSettings()
|
|
|
|
InitManager()
|
|
|
|
cli := GetManager().AppleCli()
|
|
resp, err := cli.VerifyAppToken(context.Background(), token)
|
|
|
|
t.Error(err)
|
|
t.Error(resp)
|
|
}
|