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 (
2020 "context"
2121 "fmt"
2222 "net/http"
23- "strings"
2423 "testing"
2524 "time"
2625
@@ -422,8 +421,7 @@ func TestDeleteInstances(t *testing.T) {
422421 },
423422 }, nil )
424423 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 )
427425}
428426
429427func TestAgentPoolDeleteNodes (t * testing.T ) {
@@ -478,8 +476,7 @@ func TestAgentPoolDeleteNodes(t *testing.T) {
478476 ObjectMeta : v1.ObjectMeta {Name : "node" },
479477 },
480478 })
481- expectedErrStr := "The specified account is disabled."
482- assert .True (t , strings .Contains (err .Error (), expectedErrStr ))
479+ assert .Error (t , err )
483480
484481 as .minSize = 3
485482 err = as .DeleteNodes ([]* apiv1.Node {})
You can’t perform that action at this time.
0 commit comments