|
1 | 1 | package itest
|
2 | 2 |
|
3 | 3 | import (
|
4 |
| - "context" |
5 | 4 | "encoding/hex"
|
6 | 5 | "fmt"
|
7 | 6 | "os"
|
@@ -1245,44 +1244,6 @@ func testSignVerifyMessageWithAddr(ht *lntest.HarnessTest) {
|
1245 | 1244 | require.False(ht, respValid.Valid, "external signature did validate")
|
1246 | 1245 | }
|
1247 | 1246 |
|
1248 |
| -// testNativeSQLNoMigration tests that nodes that have invoices would not start |
1249 |
| -// up with native SQL enabled, as we don't currently support migration of KV |
1250 |
| -// invoices to the new SQL schema. |
1251 |
| -func testNativeSQLNoMigration(ht *lntest.HarnessTest) { |
1252 |
| - alice := ht.NewNode("Alice", nil) |
1253 |
| - |
1254 |
| - // Make sure we run the test with SQLite or Postgres. |
1255 |
| - if alice.Cfg.DBBackend != node.BackendSqlite && |
1256 |
| - alice.Cfg.DBBackend != node.BackendPostgres { |
1257 |
| - |
1258 |
| - ht.Skip("node not running with SQLite or Postgres") |
1259 |
| - } |
1260 |
| - |
1261 |
| - // Skip the test if the node is already running with native SQL. |
1262 |
| - if alice.Cfg.NativeSQL { |
1263 |
| - ht.Skip("node already running with native SQL") |
1264 |
| - } |
1265 |
| - |
1266 |
| - alice.RPC.AddInvoice(&lnrpc.Invoice{ |
1267 |
| - Value: 10_000, |
1268 |
| - }) |
1269 |
| - |
1270 |
| - alice.SetExtraArgs([]string{"--db.use-native-sql"}) |
1271 |
| - |
1272 |
| - // Restart the node manually as we're really only interested in the |
1273 |
| - // startup error. |
1274 |
| - require.NoError(ht, alice.Stop()) |
1275 |
| - require.NoError(ht, alice.StartLndCmd(context.Background())) |
1276 |
| - |
1277 |
| - // We expect the node to fail to start up with native SQL enabled, as we |
1278 |
| - // have an invoice in the KV store. |
1279 |
| - require.Error(ht, alice.WaitForProcessExit()) |
1280 |
| - |
1281 |
| - // Reset the extra args and restart alice. |
1282 |
| - alice.SetExtraArgs(nil) |
1283 |
| - require.NoError(ht, alice.Start(ht.Context())) |
1284 |
| -} |
1285 |
| - |
1286 | 1247 | // testSendSelectedCoins tests that we're able to properly send the selected
|
1287 | 1248 | // coins from the wallet to a single target address.
|
1288 | 1249 | func testSendSelectedCoins(ht *lntest.HarnessTest) {
|
|
0 commit comments