silvasong commented on a change in pull request #54: move global variables 
initialized to init
URL: 
https://github.com/apache/incubator-openwhisk-runtime-python/pull/54#discussion_r269654035
 
 

 ##########
 File path: 
tests/src/test/scala/runtime/actionContainers/PythonActionContainerTests.scala
 ##########
 @@ -267,10 +267,7 @@ class PythonActionContainerTests extends 
BasicActionRunnerTests with WskActorSys
       val (out, err) = withActionContainer() { c =>
         val (initCode, initRes) = c.init(initPayload(code, main = "main"))
         if (initErrorsAreLogged) {
-          initCode should be(200)
-          val args = JsObject("msg" -> JsString("any"))
-          val (runCode, runRes) = c.run(runPayload(args))
-          runCode should be(502)
+          initCode should be(502)
 
 Review comment:
   Initialization phase will execute part of the code. In this test scenario, 
initcode should be 502.
   thx.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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