mirror of
https://github.com/aljazceru/breez-lnd.git
synced 2026-02-05 14:44:24 +01:00
test: add a select statement to avoid error if lnd is shutting down
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user