multi: terminate SubscribeSingleInvoice once completed
This commit is contained in:
3 files changed
+19
No files matched your search
@@ -4,6 +4,7 @@ import (
|
||||
"context"
|
||||
"crypto/rand"
|
||||
"fmt"
|
||||
"io"
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
@@ -403,4 +404,11 @@ func testHoldInvoicePersistence(net *lntest.NetworkHarness, t *harnessTest) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Check that all of our invoice streams are terminated by the server
|
||||
// since the invoices have completed.
|
||||
for _, stream := range invoiceStreams {
|
||||
_, err = stream.Recv()
|
||||
require.Equal(t.t, io.EOF, err)
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user