@@ -118,9 +118,7 @@ func TestBackwardsCompatibilityV1(t *testing.T) {
118
118
// Status check -- poll app list
119
119
checkStatus := func (lastAction string ) {
120
120
err = wait .Poll (2 * time .Second , pollTimeout , func () (bool , error ) {
121
- fmt .Println ("Polling app status..." )
122
121
output = info .dockerCmd ("app" , "ls" )
123
- fmt .Println (output )
124
122
expectedLines := []string {
125
123
`RUNNING APP\s+APP NAME\s+SERVICES\s+LAST ACTION\s+RESULT\s+CREATED\s+MODIFIED\s+REFERENCE` ,
126
124
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) {
137
135
138
136
queryService := func (port string ) {
139
137
err = wait .Poll (2 * time .Second , pollTimeout , func () (bool , error ) {
140
- fmt .Println ("Querying service ..." )
141
138
// Check the frontend service responds
142
139
url := `http://localhost:` + port
143
140
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
152
142
})
153
143
assert .NilError (t , err )
154
144
}
0 commit comments