Skip to content

Commit

Permalink
Fixed goroutine leak in server/etcdserver/raft_test.go
Browse files Browse the repository at this point in the history
Signed-off-by: VladSaioc <[email protected]>

Fixed goroutine leak in server/etcdserver/raft_test.go

Fixed goroutine leak in server/etcdserver/raft_test.go

Signed-off-by: VladSaioc <[email protected]>

Fixed goroutine leak in server/etcdserver/raft_test.go
  • Loading branch information
VladSaioc committed Jul 31, 2022
1 parent 046c46e commit 90bb7ac
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/etcdserver/raft_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ func TestStopRaftWhenWaitingForApplyDone(t *testing.T) {
select {
case <-srv.r.applyc:
case <-time.After(time.Second):
srv.r.stop()
t.Fatalf("failed to receive toApply struct")
}

Expand Down

0 comments on commit 90bb7ac

Please sign in to comment.