Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

simulators/ethereum/pyspec: Refactor, add sync payload verification #995

Merged
merged 3 commits into from
Feb 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions simulators/ethereum/pyspec/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,21 +68,21 @@ func fixtureRunner(t *hivesim.T) {

// spawn `parallelism` workers to run fixtures against clients
var wg sync.WaitGroup
var testCh = make(chan *testcase)
var testCh = make(chan *TestCase)
wg.Add(parallelism)
for i := 0; i < parallelism; i++ {
go func() {
defer wg.Done()
for test := range testCh {
t.Run(hivesim.TestSpec{
Name: test.name,
Name: test.Name,
Description: ("Test Link: " +
repoLink(test.filepath)),
repoLink(test.FilePath)),
Run: test.run,
AlwaysRun: false,
})
if test.failedErr != nil {
failedTests[test.clientType+"/"+test.name] = test.failedErr
if test.FailedErr != nil {
failedTests[test.ClientType+"/"+test.Name] = test.FailedErr
}
}
}()
Expand All @@ -92,13 +92,13 @@ func fixtureRunner(t *hivesim.T) {
re := regexp.MustCompile(testPattern)

// deliver and run test cases against each client
loadFixtureTests(t, fileRoot, re, func(tc testcase) {
loadFixtureTests(t, fileRoot, re, func(tc TestCase) {
for _, client := range clientTypes {
if !client.HasRole("eth1") {
continue
}
tc := tc // shallow copy
tc.clientType = client.Name
tc.ClientType = client.Name
testCh <- &tc
}
})
Expand Down
Loading