diff --git a/test/integration/version_upgrade_test.go b/test/integration/version_upgrade_test.go index 2be1d003c5..8b92f259cd 100644 --- a/test/integration/version_upgrade_test.go +++ b/test/integration/version_upgrade_test.go @@ -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())