test: add a select statement to avoid error if lnd is shutting down
This commit is contained in:
parent
006dff1207
commit
cfa45c15f7
@ -2230,6 +2230,12 @@ func testGraphTopologyNotifications(net *networkHarness, t *harnessTest) {
|
|||||||
return
|
return
|
||||||
default:
|
default:
|
||||||
graphUpdate, err := topologyClient.Recv()
|
graphUpdate, err := topologyClient.Recv()
|
||||||
|
select {
|
||||||
|
case <-quit:
|
||||||
|
return
|
||||||
|
default:
|
||||||
|
}
|
||||||
|
|
||||||
if err == io.EOF {
|
if err == io.EOF {
|
||||||
return
|
return
|
||||||
} else if err != nil {
|
} else if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user