channeldb test: add TestOutgoingPaymentsMigration

This commit is contained in:
Johan T. Halseth committed 2019-05-27 20:18:57 +02:00
1 parent 693807cf6e
commit b7189ba028
3 files changed
+173 -1

No files matched your search

+10
View File
@@ -20,6 +20,16 @@ func applyMigration(t *testing.T, beforeMigration, afterMigration func(d *DB),
t.Fatal(err)
}
// Create a test node that will be our source node.
testNode, err := createTestVertex(cdb)
if err != nil {
t.Fatal(err)
}
graph := cdb.ChannelGraph()
if err := graph.SetSourceNode(testNode); err != nil {
t.Fatal(err)
}
// beforeMigration usually used for populating the database
// with test data.
beforeMigration(cdb)