mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-21 19:01:49 +00:00
[AZURE] t.Fatalf() for nil pointer (#90154)
* [AZURE] t.FatalF() for nil pointer * [AZURE] t.FatalF() for nil pointer
This commit is contained in:
parent
4f2f51602e
commit
cf1b72e457
@ -119,11 +119,11 @@ func TestAzureAuthProvider(t *testing.T) {
|
||||
}
|
||||
azureProvider := provider.(*azureAuthProvider)
|
||||
if azureProvider == nil {
|
||||
t.Errorf("newAzureAuthProvider should return an instance of type azureAuthProvider")
|
||||
t.Fatalf("newAzureAuthProvider should return an instance of type azureAuthProvider")
|
||||
}
|
||||
ts := azureProvider.tokenSource.(*azureTokenSource)
|
||||
if ts == nil {
|
||||
t.Errorf("azureAuthProvider should be an instance of azureTokenSource")
|
||||
t.Fatalf("azureAuthProvider should be an instance of azureTokenSource")
|
||||
}
|
||||
if ts.configMode != v.expectedConfigMode {
|
||||
t.Errorf("expected configMode: %d, actual: %d", v.expectedConfigMode, ts.configMode)
|
||||
|
Loading…
Reference in New Issue
Block a user