@@ -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