Skip to content

Commit

Permalink
Fix transactions test.
Browse files Browse the repository at this point in the history
  • Loading branch information
BearLemma committed Jan 27, 2022
1 parent 85e2134 commit 08bf2d0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cli/tests/lit/transaction.lit
Expand Up @@ -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');
Expand Down Expand Up @@ -71,11 +71,12 @@ $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
# CHECK: [Adalbrecht ]

$CURL -X POST $CHISELD_HOST/dev/write_and_read
# CHECK: HTTP/1.1 200 OK
# CHECK: [Adalbrecht, ThisIsTheBestName ]
# CHECK: [Adalbrecht ThisIsTheBestName ]

0 comments on commit 08bf2d0

Please sign in to comment.