Skip to content

Commit

Permalink
test(logic): add test for Backtrack of Death scenario
Browse files Browse the repository at this point in the history
  • Loading branch information
ccamel committed Sep 24, 2024
1 parent 68c428d commit a3077ca
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions x/logic/keeper/grpc_query_ask_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,12 @@ func TestGRPCAsk(t *testing.T) {
maxGas: 3000,
expectedError: "out of gas: logic <recursionOfDeath/0> (3001/3000): limit exceeded",
},
{
program: "backtrackOfDeath :- repeat, fail.",
query: "backtrackOfDeath.",
maxGas: 3014,
expectedError: "out of gas: logic <fail/0> (3015/3014): limit exceeded",
},
{
query: "length(List, 100000).",
maxVariables: 1000,
Expand Down

0 comments on commit a3077ca

Please sign in to comment.