Skip to content

Commit

Permalink
Optimize the test result
Browse files Browse the repository at this point in the history
  • Loading branch information
ningyougang committed Jul 25, 2022
1 parent 331458a commit 7b7f3e8
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import actionContainers.{ActionContainer, ActionProxyContainerTestUtils}
import actionContainers.ActionContainer.withContainer
import common.WskActorSystem

import spray.json.{JsObject, JsString}
import spray.json.{JsArray, JsObject, JsString}

abstract class ActionLoopGoContainerTests
extends ActionProxyContainerTestUtils
Expand Down Expand Up @@ -154,8 +154,9 @@ abstract class ActionLoopGoContainerTests
))
withActionLoopContainer { c =>
c.init(initPayload(src))._1 shouldBe (200)
val result = c.run(JsObject())
val result = c.runForJsArray(JsObject())
result._1 shouldBe (200)
result._2 shouldBe Some(JsArray(JsString("a"), JsString("b")))
}
}
}

0 comments on commit 7b7f3e8

Please sign in to comment.