mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-31 16:55:13 +02:00
channeldb: ensure the cleanUp func is always run during tests
This commit is contained in:
@@ -33,10 +33,10 @@ func randInvoice(value btcutil.Amount) (*Invoice, error) {
|
||||
|
||||
func TestInvoiceWorkflow(t *testing.T) {
|
||||
db, cleanUp, err := makeTestDB()
|
||||
defer cleanUp()
|
||||
if err != nil {
|
||||
t.Fatalf("unable to make test db: %v", err)
|
||||
}
|
||||
defer cleanUp()
|
||||
|
||||
// Create a fake invoice which we'll use several times in the tests
|
||||
// below.
|
||||
|
Reference in New Issue
Block a user