libp2p / libp2p/go-libp2p

quicreuse: flaky TestListenOnSameProto

Open
#1,995 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

kind/bug
Dominant language
Go
Stars
6.9k
Forks
1.3k
Avg merge
13d 21h
Merged PRs (30d)
1

Description

https://github.com/libp2p/go-libp2p/actions/runs/3899062461/jobs/6658382849

```
=== RUN TestListenOnSameProto
=== RUN TestListenOnSameProto/with_reuseport
connmgr_test.go:40:
Error Trace: D:\a\go-libp2p\go-libp2p\p2p\transport\quicreuse\connmgr_test.go:40
D:\a\go-libp2p\go-libp2p\p2p\transport\quicreuse\connmgr_test.go:91
D:\a\go-libp2p\go-libp2p\p2p\transport\quicreuse\connmgr_test.go:57
Error: Condition never satisfied
Test: TestListenOnSameProto/with_reuseport
=== RUN TestListenOnSameProto/without_reuseport
--- FAIL: TestListenOnSameProto (0.22s)
--- FAIL: TestListenOnSameProto/with_reuseport (0.20s)
--- PASS: TestListenOnSameProto/without_reuseport (0.02s)
```

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with p2p/transport/quicreuse/connmgr_test.go, especially lines 40, 57, and 91, and review the linked GitHub Actions run for the failure. Reproduce TestListenOnSameProto, focusing on the with_reuseport case; done means the test completes reliably while both reuseport and non-reuseport subtests pass.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
networking, testing
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.