Skip to content

Commit

Permalink
Add 2 minutes delay after installing before upgrade in E2E (#320)
Browse files Browse the repository at this point in the history
Signed-off-by: Marko Mudrinić <mudrinic.mare@gmail.com>
  • Loading branch information
xmudrii authored and kubermatic-bot committed Mar 29, 2019
1 parent 78ea337 commit cfac141
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/e2e/upgrade_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ import (

const (
labelControlPlaneNode = "node-role.kubernetes.io/master"
delayUpgrade = 2 * time.Minute
)

func TestClusterUpgrade(t *testing.T) {
Expand Down Expand Up @@ -145,6 +146,9 @@ func TestClusterUpgrade(t *testing.T) {
t.Fatalf("version mismatch before running upgrade: %v", err)
}

t.Logf("waiting %s for nodes to settle down", delayUpgrade.String())
time.Sleep(delayUpgrade)

// Create a new KubeOne provisioner pointing to the new configuration file
target = NewKubeone(testPath, tc.targetConfigPath)
clusterVerifier := NewKubetest(tc.targetVersion, "../../_build", map[string]string{
Expand Down

0 comments on commit cfac141

Please sign in to comment.