Fixed pointer issue.

This commit is contained in:
Patrick Jones 2020-10-26 13:44:32 -07:00
parent 922bc968ad
commit f46c65f948
1 changed files with 2 additions and 2 deletions

View File

@ -42,7 +42,7 @@ func TestClientAuthentication_InjectHeaderAuthentication(t *testing.T) {
ClientID: clientID, ClientID: clientID,
ClientSecret: clientSecret, ClientSecret: clientSecret,
} }
headerAuthentication.InjectAuthentication(&valuesH, &headerH) headerAuthentication.InjectAuthentication(valuesH, headerH)
if got, want := valuesH["audience"], []string{"32555940559.apps.googleusercontent.com"}; !reflect.DeepEqual(got, want) { if got, want := valuesH["audience"], []string{"32555940559.apps.googleusercontent.com"}; !reflect.DeepEqual(got, want) {
t.Errorf("audience = %q, want %q", got, want) t.Errorf("audience = %q, want %q", got, want)
@ -73,7 +73,7 @@ func TestClientAuthentication_ParamsAuthentication(t *testing.T) {
ClientID: clientID, ClientID: clientID,
ClientSecret: clientSecret, ClientSecret: clientSecret,
} }
paramsAuthentication.InjectAuthentication(&valuesP, &headerP) paramsAuthentication.InjectAuthentication(valuesP, headerP)
if got, want := valuesP["audience"], []string{"32555940559.apps.googleusercontent.com"}; !reflect.DeepEqual(got, want) { if got, want := valuesP["audience"], []string{"32555940559.apps.googleusercontent.com"}; !reflect.DeepEqual(got, want) {
t.Errorf("audience = %q, want %q", got, want) t.Errorf("audience = %q, want %q", got, want)