File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
cluster-autoscaler/cloudprovider/azure Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,6 @@ import (
20
20
"context"
21
21
"fmt"
22
22
"net/http"
23
- "strings"
24
23
"testing"
25
24
"time"
26
25
@@ -422,8 +421,7 @@ func TestDeleteInstances(t *testing.T) {
422
421
},
423
422
}, nil )
424
423
err = as .DeleteInstances (instances )
425
- expectedErrStr := "The specified account is disabled."
426
- assert .True (t , strings .Contains (err .Error (), expectedErrStr ))
424
+ assert .Error (t , err )
427
425
}
428
426
429
427
func TestAgentPoolDeleteNodes (t * testing.T ) {
@@ -478,8 +476,7 @@ func TestAgentPoolDeleteNodes(t *testing.T) {
478
476
ObjectMeta : v1.ObjectMeta {Name : "node" },
479
477
},
480
478
})
481
- expectedErrStr := "The specified account is disabled."
482
- assert .True (t , strings .Contains (err .Error (), expectedErrStr ))
479
+ assert .Error (t , err )
483
480
484
481
as .minSize = 3
485
482
err = as .DeleteNodes ([]* apiv1.Node {})
You can’t perform that action at this time.
0 commit comments