relab / gorums

Gorums simplify fault-tolerant quorum-based protocols
MIT License
138 stars 14 forks source link

Fix goroutine leak when test with an empty node list #190

Closed xuxiaofan1203 closed 1 month ago

xuxiaofan1203 commented 1 month ago

Node isn't added to configuration in these test cases. So n.cancel() can't be called to awaken the <-c.parentCtx.Done(), which results in goroutines leak. So the node should be closed manually to avoid goroutines leak.