Skip to content

Commit 70913f3

Browse files
authored
simulators/ethereum/engine: Fix running tests with multiple sync modes (#628)
Fix wrong sync mode run
1 parent 308188b commit 70913f3

File tree

1 file changed

+2
-0
lines changed
  • simulators/ethereum/engine/suites/sync

1 file changed

+2
-0
lines changed

simulators/ethereum/engine/suites/sync/tests.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@ func AddSyncTestsToSuite(sim *hivesim.Simulation, suite *hivesim.Suite, tests []
6363
// Add the new file to be loaded as chain.rlp
6464
}
6565
for _, variant := range clientSyncVariantGenerator.Configure(big.NewInt(ttd), genesisPath, currentTest.ChainFile) {
66+
variant := variant
67+
clientDef := clientDef
6668
suite.Add(hivesim.TestSpec{
6769
Name: fmt.Sprintf("%s (%s, sync/%s)", currentTest.Name, clientDef.Name, variant.Name),
6870
Description: currentTest.About,

0 commit comments

Comments
 (0)