test: add a select statement to avoid error if lnd is shutting down
This commit is contained in:
1 file changed
+6
@@ -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 {
|
||||||
|
|||||||
Reference in new issue
Block a user