rabbah commented on a change in pull request #160: Actionloop based runtime for 
Typescript
URL: 
https://github.com/apache/openwhisk-runtime-nodejs/pull/160#discussion_r379831842
 
 

 ##########
 File path: 
tests/src/test/scala/runtime/actionContainers/NodeJsActionContainerTests.scala
 ##########
 @@ -293,18 +296,21 @@ abstract class NodeJsActionContainerTests extends 
BasicActionRunnerTests with Ws
           | }
         """.stripMargin
 
-      c.init(initPayload(code))._1 should be(200)
-
-      val (runCode, result) = c.run(runPayload(JsObject("payload" -> 
JsString("test"))))
-      runCode should be(200)
-      result should be(Some(JsObject("payload" -> JsString("hello, test!"))))
+      if (isTypeScript)
+        c.init(initPayload(code))._1 should be(502)
+      else {
+        c.init(initPayload(code))._1 should be(200)
+        val (runCode, result) = c.run(runPayload(JsObject("payload" -> 
JsString("test"))))
+        runCode should be(200)
+        result should be(Some(JsObject("payload" -> JsString("hello, test!"))))
+      }
     }
-
-    checkStreams(out, err, {
-      case (o, e) =>
-        o shouldBe "hello, test!"
-        e shouldBe empty
-    })
 
 Review comment:
   Use {} for consistency. 

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