Skip to content

Commit da9f4f7

Browse files
committed
test(logic): add test for Predicate Recursion of Death scenario
1 parent dc6a643 commit da9f4f7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

x/logic/keeper/grpc_query_ask_test.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,12 @@ func TestGRPCAsk(t *testing.T) {
165165
},
166166
expectedError: "out of gas: logic <block_height/1> (11167/3000): limit exceeded",
167167
},
168+
{
169+
program: "recursionOfDeath :- recursionOfDeath.",
170+
query: "recursionOfDeath.",
171+
maxGas: 3000,
172+
expectedError: "out of gas: logic <recursionOfDeath/0> (3001/3000): limit exceeded",
173+
},
168174
{
169175
query: "length(List, 100000).",
170176
maxVariables: 1000,

0 commit comments

Comments
 (0)