erigontech / erigontech/silkworm

silkworm_infra_test: slow protocol stub tests on macOS

Open
#2,502 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
318
Forks
84
PR merge metrics
No merged PRs in 30d

Description

Run:

time ./build/silkworm/infra/silkworm_infra_test --min-duration=1

Reports 4 tests that take almost exactly 5 sec each:

```
5.008 s: ETHBACKEND protocol version with server stub
5.007 s: KV protocol version with server stub
5.004 s: MINING protocol version with server stub
5.008 s: TXPOOL protocol version with server stub
0.57s user 0.29s system 3% cpu 21.823 total
```

This is a sign of "sleep"-driven tests, and should be fixed.
This can be a 20 sec win for `make test`.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.