diff --git a/provider/azure_test.go b/provider/azure_test.go index ed04b26694..ef48878a2d 100644 --- a/provider/azure_test.go +++ b/provider/azure_test.go @@ -469,7 +469,7 @@ func TestAzureGetAccessToken(t *testing.T) { if err != nil { t.Fatalf("expected to construct a token successfully, but got error %v", err) } - _, err := token.MarshalJSON() + _, err = token.MarshalJSON() if err == nil || !strings.Contains(err.Error(), "marshalling ServicePrincipalMSISecret is not supported") { t.Fatalf("expected to fail to marshal token, but got %v", err)