From 08bf2d0548fcf387a22ef166df5488ba96b30fcb Mon Sep 17 00:00:00 2001 From: Jan Plhak Date: Wed, 26 Jan 2022 12:39:07 +0100 Subject: [PATCH] Fix transactions test. --- cli/tests/lit/transaction.lit | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cli/tests/lit/transaction.lit b/cli/tests/lit/transaction.lit index 0248d104d..3581bd1c2 100644 --- a/cli/tests/lit/transaction.lit +++ b/cli/tests/lit/transaction.lit @@ -19,7 +19,7 @@ export default async function chisel(req: Request) { await p.save(); if (req_json.command == "die with honor") { - throw new InternalError("Let's see if transaction gets cancelled"); + throw "Let's see if transaction gets cancelled"; } return new Response('Mission acomplished'); @@ -71,6 +71,7 @@ $CURL -X POST --data '{ "name": "Ruprt", "command": "die with honor" }' $CHISELD_HOST/dev/store_person +# CHECK: HTTP/1.1 500 Internal Server Error $CURL $CHISELD_HOST/dev/retrieve_all # CHECK: HTTP/1.1 200 OK @@ -78,4 +79,4 @@ $CURL $CHISELD_HOST/dev/retrieve_all $CURL -X POST $CHISELD_HOST/dev/write_and_read # CHECK: HTTP/1.1 200 OK -# CHECK: [Adalbrecht, ThisIsTheBestName ] +# CHECK: [Adalbrecht ThisIsTheBestName ]