Rename func to ensureNodeExistsByProviderID

This commit is contained in:
Dong Liu
2018-04-28 13:43:29 +08:00
parent 050b583b96
commit f0046a7194
2 changed files with 7 additions and 7 deletions

View File

@@ -41,7 +41,7 @@ import (
"github.com/stretchr/testify/assert"
)
func TestEnsureNodeExistsByProviderIDOrInstanceID(t *testing.T) {
func TestEnsureNodeExistsByProviderID(t *testing.T) {
testCases := []struct {
testName string
@@ -149,7 +149,7 @@ func TestEnsureNodeExistsByProviderIDOrInstanceID(t *testing.T) {
}
instances, _ := fc.Instances()
exists, err := ensureNodeExistsByProviderIDOrInstanceID(instances, tc.node)
exists, err := ensureNodeExistsByProviderID(instances, tc.node)
if tc.providerIDErr == nil {
assert.NoError(t, err)
}