Small tweaks.

Change-Id: I77b1f7b362c3ed9972e278f06045c603abcdd9d4
This commit is contained in:
Patrick Jones
2021-01-13 12:36:49 -08:00
parent 82dc24d404
commit 95713928e4
2 changed files with 8 additions and 3 deletions

View File

@@ -5,6 +5,7 @@
package externalaccount
import (
"context"
"encoding/json"
"net/http"
"net/http/httptest"
@@ -27,7 +28,7 @@ func TestRetrieveURLSubjectToken_Text(t *testing.T) {
tfc := testFileConfig
tfc.CredentialSource = cs
out, err := tfc.parse().subjectToken()
out, err := tfc.parse(context.Background()).subjectToken()
if err != nil {
t.Fatalf("retrieveSubjectToken() failed: %v", err)
}
@@ -50,7 +51,7 @@ func TestRetrieveURLSubjectToken_Untyped(t *testing.T) {
tfc := testFileConfig
tfc.CredentialSource = cs
out, err := tfc.parse().subjectToken()
out, err := tfc.parse(context.Background()).subjectToken()
if err != nil {
t.Fatalf("Failed to retrieve URL subject token: %v", err)
}
@@ -81,7 +82,7 @@ func TestRetrieveURLSubjectToken_JSON(t *testing.T) {
tfc := testFileConfig
tfc.CredentialSource = cs
out, err := tfc.parse().subjectToken()
out, err := tfc.parse(context.Background()).subjectToken()
if err != nil {
t.Fatalf("%v", err)
}