Skip to content

Commit

Permalink
I accidentlly deleted the input setup line. :/ Fixed.
Browse files Browse the repository at this point in the history
  • Loading branch information
wyhaines committed Sep 26, 2024
1 parent df8c7ae commit 08873dc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion gnovm/cmd/gno/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,10 @@ func runMachineCustom(store gno.Store, pkgPath string, stdin io.Reader, stdout i
m := gno.NewMachineWithOptions(gno.MachineOptions{
PkgPath: pkgPath,
Output: stdout,
Input: stdin,
Store: store,
Context: ctx,
MaxAllocBytes: maxAlloc,
Debug: debug,
})
return m
}
Expand Down
2 changes: 1 addition & 1 deletion gnovm/cmd/gno/run_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ func TestRunApp(t *testing.T) {
},
{
args: []string{"run", "-debug", "../../tests/integ/debugger/sample.gno"},
stdoutShouldContain: "in main\nhello 3\n!zero\n2\nbye 4",
stdoutShouldContain: "Welcome to the Gnovm debugger",
},
{
args: []string{"run", "-debug-addr", "invalidhost:17538", "../../tests/integ/debugger/sample.gno"},
Expand Down

0 comments on commit 08873dc

Please sign in to comment.