multi: terminate SubscribeSingleInvoice once completed

This commit is contained in:
carla committed 2021-04-14 09:19:23 +02:00
1 parent 0686329062
commit db1d671b1a
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)
}
}