mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Fix goroutine leaks in TestNodeProposeAddDuplicateNode
raft: fix goroutine leaks in TestNodeProposeAddDuplicateNode The goroutine created with `n.run()` will leak if we forget to call `n.Stop()`
This commit is contained in:
parent
69279532f4
commit
e6f28dbeb2
@ -860,6 +860,7 @@ func TestNodeProposeAddLearnerNode(t *testing.T) {
|
|||||||
<-applyConfChan
|
<-applyConfChan
|
||||||
close(stop)
|
close(stop)
|
||||||
<-done
|
<-done
|
||||||
|
n.Stop()
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestAppendPagination(t *testing.T) {
|
func TestAppendPagination(t *testing.T) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user