about summary refs log tree commit diff stats
path: root/internal/importer/main_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/importer/main_test.go')
-rw-r--r--internal/importer/main_test.go6
1 files changed, 2 insertions, 4 deletions
diff --git a/internal/importer/main_test.go b/internal/importer/main_test.go
index 9e19b8c..576d681 100644
--- a/internal/importer/main_test.go
+++ b/internal/importer/main_test.go
@@ -22,11 +22,9 @@ func BenchmarkImporterLowMemory(b *testing.B) {
 		b.Fatal(err)
 	}
 
-	err = Start(
+	imp := New(&cfg, logger.Named("importer"), write)
+	err = imp.Start(
 		context.Background(),
-		&cfg,
-		logger.Named("importer"),
-		write,
 		false,
 		&[]string{"nixpkgs"},
 	)