Skip to content

Commit

Permalink
Remove comments
Browse files Browse the repository at this point in the history
  • Loading branch information
bjee19 committed Jun 21, 2024
1 parent d94c435 commit f3f82b9
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions tests/suite/graceful_recovery_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,25 +147,7 @@ func runRestartNodeTest(teaURL, coffeeURL string, files []string, ns *core.Names
Expect(err).ToNot(HaveOccurred())
}

// containerOutput, err := exec.Command("docker", "container", "ls").CombinedOutput()
// Expect(err).ToNot(HaveOccurred())

containerName := *clusterName + "-control-plane"
fmt.Println("This is the container name: " + containerName)
//var containerName string
//for _, line := range strings.Split(string(containerOutput), "\n") {
// for _, word := range strings.Split(line, " ") {
// // This is a potential weak spot in the code where we rely on the container which NGF
// // is running on to contain "control-plane" in the name and for no other container to have that either.
// // This is currently working in our test framework may break in the future.
// if strings.Contains(word, "control-plane") {
// containerName = strings.TrimSpace(word)
// break
// }
// }
//}
//Expect(containerName).ToNot(Equal(""))

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

Expand Down

0 comments on commit f3f82b9

Please sign in to comment.