Skip to content

Commit

Permalink
Move checks on clusterName earlier
Browse files Browse the repository at this point in the history
  • Loading branch information
bjee19 committed Jun 26, 2024
1 parent 18d153b commit 9370b25
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/suite/graceful_recovery_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,10 @@ func runRestartNodeTest(teaURL, coffeeURL string, files []string, ns *core.Names

kindNodeName := nodeNames[0]

Expect(clusterName).ToNot(BeNil(), "clusterName variable not set")
Expect(*clusterName).ToNot(BeEmpty())
containerName := *clusterName + "-control-plane"

if portFwdPort != 0 {
close(portForwardStopCh)
}
Expand All @@ -142,10 +146,6 @@ func runRestartNodeTest(teaURL, coffeeURL string, files []string, ns *core.Names
Expect(err).ToNot(HaveOccurred())
}

Expect(clusterName).ToNot(BeNil(), "clusterName variable not set")
Expect(*clusterName).ToNot(BeEmpty())
containerName := *clusterName + "-control-plane"

_, err = exec.Command("docker", "restart", containerName).CombinedOutput()
Expect(err).ToNot(HaveOccurred())

Expand Down

0 comments on commit 9370b25

Please sign in to comment.