Add missing import and parens

pull/4568/head
Thomas Stromberg 2019-06-24 11:42:05 +08:00
parent a9ec145bcb
commit 7d394fa597
1 changed files with 3 additions and 2 deletions

View File

@ -22,6 +22,7 @@ import (
"io/ioutil"
"os"
"runtime"
"strings"
"testing"
"github.com/docker/machine/libmachine/state"
@ -82,8 +83,8 @@ func TestVersionUpgrade(t *testing.T) {
releaseRunner.RunCommand("stop", true)
releaseRunner.CheckStatus(state.Stopped.String())
// Trim the leading "v" prefix to assert that we handle it properly.
currentRunner.Start(fmt.Sprintf("--kubernetes-version=%s", strings.TrimPrefix(constants.NewestKubernetesVersion, "v"))
// Trim the leading "v" prefix to assert that we handle it properly.
currentRunner.Start(fmt.Sprintf("--kubernetes-version=%s", strings.TrimPrefix(constants.NewestKubernetesVersion, "v")))
currentRunner.CheckStatus(state.Running.String())
currentRunner.RunCommand("delete", true)
currentRunner.CheckStatus(state.None.String())