Skip to content

Commit 0da0582

Browse files
committed
Remove comments
1 parent 1275a48 commit 0da0582

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

tests/suite/graceful_recovery_test.go

-18
Original file line numberDiff line numberDiff line change
@@ -145,25 +145,7 @@ func runRestartNodeTest(teaURL, coffeeURL string, files []string, ns *core.Names
145145
Expect(err).ToNot(HaveOccurred())
146146
}
147147

148-
// containerOutput, err := exec.Command("docker", "container", "ls").CombinedOutput()
149-
// Expect(err).ToNot(HaveOccurred())
150-
151148
containerName := *clusterName + "-control-plane"
152-
fmt.Println("This is the container name: " + containerName)
153-
//var containerName string
154-
//for _, line := range strings.Split(string(containerOutput), "\n") {
155-
// for _, word := range strings.Split(line, " ") {
156-
// // This is a potential weak spot in the code where we rely on the container which NGF
157-
// // is running on to contain "control-plane" in the name and for no other container to have that either.
158-
// // This is currently working in our test framework may break in the future.
159-
// if strings.Contains(word, "control-plane") {
160-
// containerName = strings.TrimSpace(word)
161-
// break
162-
// }
163-
// }
164-
//}
165-
//Expect(containerName).ToNot(Equal(""))
166-
167149
_, err = exec.Command("docker", "restart", containerName).CombinedOutput()
168150
Expect(err).ToNot(HaveOccurred())
169151

0 commit comments

Comments
 (0)