markusthoemmes commented on a change in pull request #3260: Enhance the 
RestResult with more information to debug failing tests e?
URL: 
https://github.com/apache/incubator-openwhisk/pull/3260#discussion_r166878476
 
 

 ##########
 File path: tests/src/test/scala/common/rest/WskRest.scala
 ##########
 @@ -1531,6 +1531,13 @@ class RestResult(var statusCode: StatusCode, var 
respData: String = "", blocking
       respData,
       RestResult.convertHttpResponseToStderr(respData)) {
 
+  override def toString: String = {
+    s"""${super.toString}statusCode: $statusCode
+respData: $respData
+blocking: $blocking
+    """
+  }
 
 Review comment:
   How about:
   
   ```scala
   override def toString: String = {
     s"""${super.toString}
         |statusCode: $statusCode
         |respData: $respData
         |blocking: $blocking""".stripMargin
   }
   ```

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to