Skip to content

Commit

Permalink
cannon: Bump go tests to go1.22 (ethereum-optimism#12214)
Browse files Browse the repository at this point in the history
* cannon: Update cannon go test program versions

* cannon: Allow more steps for multithreaded program
  • Loading branch information
mbaxter authored Sep 30, 2024
1 parent 5bd72f6 commit 75b0e66
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 8 deletions.
2 changes: 1 addition & 1 deletion cannon/mipsevm/multithreaded/instrumented_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func TestInstrumentedState_MultithreadedProgram(t *testing.T) {

var stdOutBuf, stdErrBuf bytes.Buffer
us := NewInstrumentedState(state, oracle, io.MultiWriter(&stdOutBuf, os.Stdout), io.MultiWriter(&stdErrBuf, os.Stderr), testutil.CreateLogger(), nil)
for i := 0; i < 1_000_000; i++ {
for i := 0; i < 2_000_000; i++ {
if us.GetState().GetExited() {
break
}
Expand Down
4 changes: 2 additions & 2 deletions cannon/testdata/example/alloc/go.mod
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
module alloc

go 1.21
go 1.22

toolchain go1.21.1
toolchain go1.22.0

require github.com/ethereum-optimism/optimism v0.0.0

Expand Down
4 changes: 2 additions & 2 deletions cannon/testdata/example/claim/go.mod
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
module claim

go 1.21
go 1.22

toolchain go1.21.1
toolchain go1.22.0

require github.com/ethereum-optimism/optimism v0.0.0

Expand Down
4 changes: 3 additions & 1 deletion cannon/testdata/example/entry/go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
module entry

go 1.21
go 1.22

toolchain go1.22.0
4 changes: 3 additions & 1 deletion cannon/testdata/example/hello/go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
module hello

go 1.20
go 1.22

toolchain go1.22.0
4 changes: 3 additions & 1 deletion cannon/testdata/example/multithreaded/go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
module multithreaded

go 1.21
go 1.22

toolchain go1.22.0

0 comments on commit 75b0e66

Please sign in to comment.