Skip to content
This repository was archived by the owner on Jul 18, 2025. It is now read-only.

Commit d3918d8

Browse files
author
Anca Iordache
committed
cleanup
Signed-off-by: Anca Iordache <[email protected]>
1 parent f1e3cee commit d3918d8

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

e2e/compatibility_test.go

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,7 @@ func TestBackwardsCompatibilityV1(t *testing.T) {
118118
// Status check -- poll app list
119119
checkStatus := func(lastAction string) {
120120
err = wait.Poll(2*time.Second, pollTimeout, func() (bool, error) {
121-
fmt.Println("Polling app status...")
122121
output = info.dockerCmd("app", "ls")
123-
fmt.Println(output)
124122
expectedLines := []string{
125123
`RUNNING APP\s+APP NAME\s+SERVICES\s+LAST ACTION\s+RESULT\s+CREATED\s+MODIFIED\s+REFERENCE`,
126124
fmt.Sprintf(`%s\s+%s \(0.1.0\)\s+2/2\s+%s\s+success\s+.+second[s]?\sago\s+.+second[s]?\sago\s+`, appName, appName, lastAction),
@@ -137,18 +135,10 @@ func TestBackwardsCompatibilityV1(t *testing.T) {
137135

138136
queryService := func(port string) {
139137
err = wait.Poll(2*time.Second, pollTimeout, func() (bool, error) {
140-
fmt.Println("Querying service ...")
141138
// Check the frontend service responds
142139
url := `http://localhost:` + port
143140
output = info.execCmd("/usr/bin/wget", "-O", "-", url)
144-
fmt.Println(output)
145-
expectedLines := []string{`Hi there, I love Docker!`}
146-
matches := true
147-
for _, expected := range expectedLines {
148-
exp := regexp.MustCompile(expected)
149-
matches = matches && exp.MatchString(output)
150-
}
151-
return matches, nil
141+
return strings.Contains(output, `Hi there, I love Docker!`), nil
152142
})
153143
assert.NilError(t, err)
154144
}

0 commit comments

Comments
 (0)