Skip to content

Conversation

@peterbroadhurst
Copy link
Contributor

Fix for #445

I wasn't able to recreate, but the test runs showed fast timeout heartbeating and connections... so I think in a slow environment a test is reconnecting the websocket after the test had finished.

Our little test websocket server would re-use the channels in that case, even though they were close

@peterbroadhurst peterbroadhurst changed the title Avoid potential double-close of channels due to fast reconnects in test Avoid potential double-close of channels due to reconnects after tests complete Jan 28, 2022
@codecov-commenter
Copy link

Codecov Report

Merging #458 (3435a95) into main (5526967) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##              main      #458   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          279       279           
  Lines        15077     15080    +3     
=========================================
+ Hits         15077     15080    +3     
Impacted Files Coverage Δ
pkg/wsclient/wstestserver.go 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5526967...3435a95. Read the comment docs.

Copy link
Contributor

@awrichar awrichar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Worth a try 👍

@peterbroadhurst peterbroadhurst merged commit 873b627 into hyperledger:main Jan 29, 2022
@peterbroadhurst peterbroadhurst deleted the fix-test-doubleclose branch January 29, 2022 02:31
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

Successfully merging this pull request may close these issues.

3 participants