Skip to content

Commit

Permalink
Support backward compatibility for runtime's return type (apache#5306)
Browse files Browse the repository at this point in the history
  • Loading branch information
upgle authored Aug 4, 2022
1 parent 8fd2156 commit 1a0f1ce
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,9 @@ trait BasicActionRunnerTests extends ActionProxyContainerTestUtils {
initCode should be(200)
val (runCode, out) = c.run(JsObject.empty)
runCode should not be (200)
out should be(Some(JsObject("error" -> JsString("The action did not return a dictionary or array."))))

out should (be(Some(JsObject("error" -> JsString("The action did not return a dictionary or array.")))) or be(
Some(JsObject("error" -> JsString("The action did not return a dictionary.")))))
}

checkStreams(out, err, {
Expand Down

0 comments on commit 1a0f1ce

Please sign in to comment.