test: add a select statement to avoid error if lnd is shutting down

This commit is contained in:
Olaoluwa Osuntokun 2017-08-02 21:00:21 -07:00
parent 006dff1207
commit cfa45c15f7
No known key found for this signature in database
GPG Key ID: 9CC5B105D03521A2

@ -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 {