From 50561a20d6cd012449f1ba4a101da49fca5cd91d Mon Sep 17 00:00:00 2001 From: Tongyao Si Date: Thu, 13 Feb 2020 08:02:44 +0800 Subject: [PATCH] Fix unit test error --- provider/azure_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)