Skip to content

Commit 70d886b

Browse files
authored
Merge pull request #1415 from lightninglabs/aider-fixes
tapdb: fix aider mistakes and inconsistencies
2 parents 8b2965f + d36ff5c commit 70d886b

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

tapdb/migrations_test.go

+12-10
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ func transformByteLiterals(t *testing.T, db *BaseDB, query string) string {
2727
return query
2828
}
2929

30+
// TestMigrationSteps is an example test that illustrates how to test database
3031
// migrations by selectively applying only some migrations, inserting dummy data
3132
// and then applying the remaining migrations.
3233
func TestMigrationSteps(t *testing.T) {
@@ -330,24 +331,25 @@ func TestMigration29(t *testing.T) {
330331
// Check universe_roots: the dummy row should keep its original
331332
// proof_type.
332333
var proofType string
333-
err = db.QueryRowContext(ctx,
334-
"SELECT proof_type FROM universe_roots WHERE id = 1").Scan(
335-
&proofType,
336-
)
334+
err = db.QueryRowContext(ctx, `
335+
SELECT proof_type FROM universe_roots WHERE id = 1
336+
`).Scan(&proofType)
337337
require.NoError(t, err)
338338
require.Equal(t, "issuance", proofType)
339339

340340
// Check federation_global_sync_config dummy data.
341-
err = db.QueryRowContext(ctx,
342-
`SELECT proof_type
343-
FROM federation_global_sync_config LIMIT 1`).Scan(&proofType)
341+
err = db.QueryRowContext(ctx, `
342+
SELECT proof_type
343+
FROM federation_global_sync_config LIMIT 1
344+
`).Scan(&proofType)
344345
require.NoError(t, err)
345346
require.Equal(t, "transfer", proofType)
346347

347348
// Check federation_uni_sync_config dummy data.
348-
err = db.QueryRowContext(ctx,
349-
`SELECT proof_type
350-
FROM federation_uni_sync_config LIMIT 1`).Scan(&proofType)
349+
err = db.QueryRowContext(ctx, `
350+
SELECT proof_type
351+
FROM federation_uni_sync_config LIMIT 1
352+
`).Scan(&proofType)
351353
require.NoError(t, err)
352354
require.Equal(t, "issuance", proofType)
353355

0 commit comments

Comments
 (0)