rabbah commented on a change in pull request #3103: Rewrite wsk basic tests
URL: 
https://github.com/apache/incubator-openwhisk/pull/3103#discussion_r161284451
 
 

 ##########
 File path: tests/src/test/scala/system/basic/WskBasicTests.scala
 ##########
 @@ -158,24 +178,24 @@ class WskBasicTests extends TestHelpers with 
WskTestHelpers {
         pkg.create(name)
       }
 
-      val stderr = wsk.pkg.create(name, expectedExitCode = CONFLICT).stderr
-      stderr should include regex (s"""Unable to create package '$name': 
resource already exists \\(code \\d+\\)""")
+      val stderr = wsk.pkg.create(name, expectedExitCode = 
Conflict.intValue).stderr
+      stderr should include regex (s"""resource already exists""")
 
 Review comment:
   many cases of `s"""xxx"""` dont need string interpolation, and can just be 
`"xxx"`.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to