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
|
||||
default:
|
||||
graphUpdate, err := topologyClient.Recv()
|
||||
select {
|
||||
case <-quit:
|
||||
return
|
||||
default:
|
||||
}
|
||||
|
||||
if err == io.EOF {
|
||||
return
|
||||
} else if err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user