Skip to content
Snippets Groups Projects
Unverified Commit a187bc14 authored by Kubernetes Prow Robot's avatar Kubernetes Prow Robot Committed by GitHub
Browse files

Merge pull request #8213 from jackfrancis/azure-agent-pool-ut

azure: fix azure_agent_pool UT
parents 3fdf1964 79114057
Branches
Tags
No related merge requests found
...@@ -20,7 +20,6 @@ import ( ...@@ -20,7 +20,6 @@ import (
"context" "context"
"fmt" "fmt"
"net/http" "net/http"
"strings"
"testing" "testing"
"time" "time"
...@@ -422,8 +421,7 @@ func TestDeleteInstances(t *testing.T) { ...@@ -422,8 +421,7 @@ func TestDeleteInstances(t *testing.T) {
}, },
}, nil) }, nil)
err = as.DeleteInstances(instances) err = as.DeleteInstances(instances)
expectedErrStr := "The specified account is disabled." assert.Error(t, err)
assert.True(t, strings.Contains(err.Error(), expectedErrStr))
} }
func TestAgentPoolDeleteNodes(t *testing.T) { func TestAgentPoolDeleteNodes(t *testing.T) {
...@@ -478,8 +476,7 @@ func TestAgentPoolDeleteNodes(t *testing.T) { ...@@ -478,8 +476,7 @@ func TestAgentPoolDeleteNodes(t *testing.T) {
ObjectMeta: v1.ObjectMeta{Name: "node"}, ObjectMeta: v1.ObjectMeta{Name: "node"},
}, },
}) })
expectedErrStr := "The specified account is disabled." assert.Error(t, err)
assert.True(t, strings.Contains(err.Error(), expectedErrStr))
as.minSize = 3 as.minSize = 3
err = as.DeleteNodes([]*apiv1.Node{}) err = as.DeleteNodes([]*apiv1.Node{})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment