mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-06-04 03:59:58 +02:00
itest: remove obsolete itest
This commit is contained in:
parent
a29f2430c1
commit
0839d4ba7b
@ -626,10 +626,6 @@ var allTestCases = []*lntest.TestCase{
|
|||||||
Name: "open channel locked balance",
|
Name: "open channel locked balance",
|
||||||
TestFunc: testOpenChannelLockedBalance,
|
TestFunc: testOpenChannelLockedBalance,
|
||||||
},
|
},
|
||||||
{
|
|
||||||
Name: "nativesql no migration",
|
|
||||||
TestFunc: testNativeSQLNoMigration,
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
Name: "sweep cpfp anchor outgoing timeout",
|
Name: "sweep cpfp anchor outgoing timeout",
|
||||||
TestFunc: testSweepCPFPAnchorOutgoingTimeout,
|
TestFunc: testSweepCPFPAnchorOutgoingTimeout,
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
package itest
|
package itest
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
|
||||||
"encoding/hex"
|
"encoding/hex"
|
||||||
"fmt"
|
"fmt"
|
||||||
"os"
|
"os"
|
||||||
@ -1245,44 +1244,6 @@ func testSignVerifyMessageWithAddr(ht *lntest.HarnessTest) {
|
|||||||
require.False(ht, respValid.Valid, "external signature did validate")
|
require.False(ht, respValid.Valid, "external signature did validate")
|
||||||
}
|
}
|
||||||
|
|
||||||
// testNativeSQLNoMigration tests that nodes that have invoices would not start
|
|
||||||
// up with native SQL enabled, as we don't currently support migration of KV
|
|
||||||
// invoices to the new SQL schema.
|
|
||||||
func testNativeSQLNoMigration(ht *lntest.HarnessTest) {
|
|
||||||
alice := ht.NewNode("Alice", nil)
|
|
||||||
|
|
||||||
// Make sure we run the test with SQLite or Postgres.
|
|
||||||
if alice.Cfg.DBBackend != node.BackendSqlite &&
|
|
||||||
alice.Cfg.DBBackend != node.BackendPostgres {
|
|
||||||
|
|
||||||
ht.Skip("node not running with SQLite or Postgres")
|
|
||||||
}
|
|
||||||
|
|
||||||
// Skip the test if the node is already running with native SQL.
|
|
||||||
if alice.Cfg.NativeSQL {
|
|
||||||
ht.Skip("node already running with native SQL")
|
|
||||||
}
|
|
||||||
|
|
||||||
alice.RPC.AddInvoice(&lnrpc.Invoice{
|
|
||||||
Value: 10_000,
|
|
||||||
})
|
|
||||||
|
|
||||||
alice.SetExtraArgs([]string{"--db.use-native-sql"})
|
|
||||||
|
|
||||||
// Restart the node manually as we're really only interested in the
|
|
||||||
// startup error.
|
|
||||||
require.NoError(ht, alice.Stop())
|
|
||||||
require.NoError(ht, alice.StartLndCmd(context.Background()))
|
|
||||||
|
|
||||||
// We expect the node to fail to start up with native SQL enabled, as we
|
|
||||||
// have an invoice in the KV store.
|
|
||||||
require.Error(ht, alice.WaitForProcessExit())
|
|
||||||
|
|
||||||
// Reset the extra args and restart alice.
|
|
||||||
alice.SetExtraArgs(nil)
|
|
||||||
require.NoError(ht, alice.Start(ht.Context()))
|
|
||||||
}
|
|
||||||
|
|
||||||
// testSendSelectedCoins tests that we're able to properly send the selected
|
// testSendSelectedCoins tests that we're able to properly send the selected
|
||||||
// coins from the wallet to a single target address.
|
// coins from the wallet to a single target address.
|
||||||
func testSendSelectedCoins(ht *lntest.HarnessTest) {
|
func testSendSelectedCoins(ht *lntest.HarnessTest) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user