From 0fe01f37ad3c40e810ba6e55e5b0e191fba479e1 Mon Sep 17 00:00:00 2001 From: Raul Jordan Date: Fri, 22 Mar 2024 13:20:48 -0500 Subject: [PATCH] test fix --- bold | 2 +- staker/challenge_test.go | 9 +++++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/bold b/bold index ef565260c2..5b6d0841b1 160000 --- a/bold +++ b/bold @@ -1 +1 @@ -Subproject commit ef565260c242933eb13b28219e6f55342b07dbe1 +Subproject commit 5b6d0841b19ee93d19946c660bcf35cab9cc254c diff --git a/staker/challenge_test.go b/staker/challenge_test.go index c21ebcdecd..f5b7ac034e 100644 --- a/staker/challenge_test.go +++ b/staker/challenge_test.go @@ -23,6 +23,7 @@ import ( "github.com/offchainlabs/nitro/solgen/go/ospgen" "github.com/offchainlabs/nitro/validator" "github.com/offchainlabs/nitro/validator/server_arb" + "github.com/offchainlabs/nitro/validator/server_common" ) func DeployOneStepProofEntry(t *testing.T, auth *bind.TransactOpts, client bind.ContractBackend) common.Address { @@ -159,7 +160,9 @@ func runChallengeTest( backend.Commit() asserterRun, err := server_arb.NewExecutionRun(ctx, - func(context.Context) (server_arb.MachineInterface, error) { return asserterMachine, nil }, + func(context.Context, ...server_common.MachineLoaderOpt) (server_arb.MachineInterface, error) { + return asserterMachine, nil + }, &server_arb.DefaultMachineCacheConfig) Require(t, err) @@ -175,7 +178,9 @@ func runChallengeTest( Require(t, err) challengerRun, err := server_arb.NewExecutionRun(ctx, - func(context.Context) (server_arb.MachineInterface, error) { return challengerMachine, nil }, + func(context.Context, ...server_common.MachineLoaderOpt) (server_arb.MachineInterface, error) { + return challengerMachine, nil + }, &server_arb.DefaultMachineCacheConfig) Require(t, err) challengerManager, err := NewExecutionChallengeManager(