Skip to content

Commit cf1b72e

Browse files
authored
[AZURE] t.Fatalf() for nil pointer (kubernetes#90154)
* [AZURE] t.FatalF() for nil pointer * [AZURE] t.FatalF() for nil pointer
1 parent 4f2f516 commit cf1b72e

File tree

1 file changed

+2
-2
lines changed
  • staging/src/k8s.io/client-go/plugin/pkg/client/auth/azure

1 file changed

+2
-2
lines changed

staging/src/k8s.io/client-go/plugin/pkg/client/auth/azure/azure_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,11 +119,11 @@ func TestAzureAuthProvider(t *testing.T) {
119119
}
120120
azureProvider := provider.(*azureAuthProvider)
121121
if azureProvider == nil {
122-
t.Errorf("newAzureAuthProvider should return an instance of type azureAuthProvider")
122+
t.Fatalf("newAzureAuthProvider should return an instance of type azureAuthProvider")
123123
}
124124
ts := azureProvider.tokenSource.(*azureTokenSource)
125125
if ts == nil {
126-
t.Errorf("azureAuthProvider should be an instance of azureTokenSource")
126+
t.Fatalf("azureAuthProvider should be an instance of azureTokenSource")
127127
}
128128
if ts.configMode != v.expectedConfigMode {
129129
t.Errorf("expected configMode: %d, actual: %d", v.expectedConfigMode, ts.configMode)

0 commit comments

Comments
 (0)