texuf 2022-07-19 14:48:25 -07:00
parent 3cc94f824b
commit 706a5a8b47
2 changed files with 4 additions and 4 deletions

View file

@ -34,7 +34,7 @@ type loginContext struct {
userInteractive *UserInteractive userInteractive *UserInteractive
} }
func createLoginContext(t *testing.T) *loginContext { func createLoginContext(_ *testing.T) *loginContext {
chainIds := []int{4} chainIds := []int{4}
cfg := &config.ClientAPI{ cfg := &config.ClientAPI{

View file

@ -40,7 +40,7 @@ type registerContext struct {
userInteractive *auth.UserInteractive userInteractive *auth.UserInteractive
} }
func createRegisterContext(t *testing.T) *registerContext { func createRegisterContext(_ *testing.T) *registerContext {
chainIds := []int{4} chainIds := []int{4}
cfg := &config.ClientAPI{ cfg := &config.ClientAPI{
@ -173,8 +173,8 @@ func (*fakePublicKeyUserApi) QueryLoginToken(ctx context.Context, req *uapi.Quer
func newRegistrationSession( func newRegistrationSession(
t *testing.T, t *testing.T,
userId string, userId string,
cfg *config.ClientAPI, _ *config.ClientAPI,
userInteractive *auth.UserInteractive, _ *auth.UserInteractive,
userAPI *fakePublicKeyUserApi, userAPI *fakePublicKeyUserApi,
) string { ) string {
body := fmt.Sprintf(`{ body := fmt.Sprintf(`{