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

Panic: sync: negative WaitGroup counter Occurs During Relay Peer Connection in TestRelayMessageTransmission #25

Open
AYAHASSAN287 opened this issue Feb 3, 2025 · 0 comments

Comments

@AYAHASSAN287
Copy link
Collaborator

Description:

When running the TestRelayMessageTransmission test, we encounter the following panic related to the Go sync.WaitGroup:

This issue occurs during the execution of the GetNumConnectedRelayPeers API. The error appears right after successfully connecting nodes and attempting to subscribe to the relay topic.


Steps to Reproduce:

  1. Run the following test case:
    go test -v -run ^TestRelayMessageTransmission$ ./testlibs/waku-go-tests
    

Expected Behavior:

The test should complete successfully without any panic.
The GetNumConnectedRelayPeers API should return the correct number of connected peers without triggering WaitGroup errors.

Actual Behavior:

The test panics with the following error:

panic: sync: negative WaitGroup counter
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant