Merge pull request #9438 from bhandras/invoice-bucket-tombstone

channeldb+lnd: set invoice bucket tombstone after migration
This commit is contained in:
András Bánki-Horváth authored and GitHub committed 2025-02-01 10:59:51 +01:00
commit 327eb8d8ca
5 files changed
+125 -1

No files matched your search

+10
View File
@@ -298,6 +298,16 @@ func testInvoiceMigration(ht *lntest.HarnessTest) {
}
}
// Now restart Bob without the --db.use-native-sql flag so we can check
// that the KV tombstone was set and that Bob will fail to start.
require.NoError(ht, bob.Stop())
bob.SetExtraArgs(nil)
// Bob should now fail to start due to the tombstone being set.
require.NoError(ht, bob.StartLndCmd(ht.Context()))
require.Error(ht, bob.WaitForProcessExit())
// Start Bob again so the test can complete.
bob.SetExtraArgs([]string{"--db.use-native-sql"})
require.NoError(ht, bob.Start(ht.Context()))
}