fix: Add context.Background() to sqlite.New() calls in test files

Multiple test files were still using the old sqlite.New(path) signature
instead of the new sqlite.New(ctx, path) signature. This was causing
compilation failures in the test suite.

Fixed files:
- internal/importer/importer_test.go
- internal/importer/external_ref_test.go
- internal/importer/timestamp_test.go
- internal/rpc/limits_test.go
- internal/rpc/list_filters_test.go
- internal/rpc/rpc_test.go
- internal/rpc/status_test.go
- internal/syncbranch/syncbranch_test.go
This commit is contained in:
Steve Yegge
2025-11-21 14:48:41 -05:00
parent 032e6a72d2
commit 1168f661d1
8 changed files with 22 additions and 22 deletions

View File

@@ -18,7 +18,7 @@ func TestImportTimestampPrecedence(t *testing.T) {
dbPath := filepath.Join(tmpDir, "test.db")
// Initialize storage
store, err := sqlite.New(dbPath)
store, err := sqlite.New(context.Background(), dbPath)
if err != nil {
t.Fatalf("Failed to create storage: %v", err)
}
@@ -138,7 +138,7 @@ func TestImportSameTimestamp(t *testing.T) {
tmpDir := t.TempDir()
dbPath := filepath.Join(tmpDir, "test.db")
store, err := sqlite.New(dbPath)
store, err := sqlite.New(context.Background(), dbPath)
if err != nil {
t.Fatalf("Failed to create storage: %v", err)
}