about summary refs log tree commit diff stats
path: root/internal/importer/main_test.go
diff options
context:
space:
mode:
authorAlan Pearce2025-01-23 14:54:12 +0100
committerAlan Pearce2025-01-24 13:04:41 +0100
commit200857159766d3c6c5831450048348444c5666f4 (patch)
tree36fb6ebbbc91e609106c8f199e01cf00ab830c3f /internal/importer/main_test.go
parent7496bb7e0652d86e2afd05d35e6632dab27c954a (diff)
downloadsearchix-200857159766d3c6c5831450048348444c5666f4.tar.lz
searchix-200857159766d3c6c5831450048348444c5666f4.tar.zst
searchix-200857159766d3c6c5831450048348444c5666f4.zip
perf: pass context to importer for better tracing
Diffstat (limited to 'internal/importer/main_test.go')
-rw-r--r--internal/importer/main_test.go10
1 files changed, 9 insertions, 1 deletions
diff --git a/internal/importer/main_test.go b/internal/importer/main_test.go
index 0bc438d..9e19b8c 100644
--- a/internal/importer/main_test.go
+++ b/internal/importer/main_test.go
@@ -1,6 +1,7 @@
 package importer
 
 import (
+	"context"
 	"testing"
 
 	"go.alanpearce.eu/searchix/internal/config"
@@ -21,7 +22,14 @@ func BenchmarkImporterLowMemory(b *testing.B) {
 		b.Fatal(err)
 	}
 
-	err = Start(&cfg, logger.Named("importer"), write, false, &[]string{"nixpkgs"})
+	err = Start(
+		context.Background(),
+		&cfg,
+		logger.Named("importer"),
+		write,
+		false,
+		&[]string{"nixpkgs"},
+	)
 	if err != nil {
 		b.Fatal(err)
 	}