Skip to content

Commit f1590d1

Browse files
committed
test(logic): add test for Backtrack of Death scenario
1 parent da9f4f7 commit f1590d1

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

x/logic/keeper/grpc_query_ask_test.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ import (
2828
"github.com/axone-protocol/axoned/v10/x/logic/types"
2929
)
3030

31+
//nolint:lll
3132
func TestGRPCAsk(t *testing.T) {
3233
emptySolution := types.Result{}
3334
Convey("Given a test cases", t, func() {
@@ -171,6 +172,12 @@ func TestGRPCAsk(t *testing.T) {
171172
maxGas: 3000,
172173
expectedError: "out of gas: logic <recursionOfDeath/0> (3001/3000): limit exceeded",
173174
},
175+
{
176+
program: "backtrackOfDeath :- repeat, fail.",
177+
query: "backtrackOfDeath.",
178+
maxGas: 3014,
179+
expectedError: "out of gas: logic <fail/0> (3015/3014): limit exceeded",
180+
},
174181
{
175182
query: "length(List, 100000).",
176183
maxVariables: 1000,

0 commit comments

Comments
 (0)