From 2fd411ce65c9b71390234b3006ef160fefa9b455 Mon Sep 17 00:00:00 2001 From: "Arik Jones (aider)" Date: Sat, 21 Sep 2024 15:57:05 -0500 Subject: [PATCH] test: add debugging info and fix reflect import --- cmd/files_test.go | 4 +++- internal/scraper/scraper_test.go | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/cmd/files_test.go b/cmd/files_test.go index 3cf875e..e540072 100644 --- a/cmd/files_test.go +++ b/cmd/files_test.go @@ -119,7 +119,9 @@ func TestRunRollup(t *testing.T) { t.Fatalf("Failed to glob output files: %v", err) } if len(outputFiles) != 1 { - t.Fatalf("Expected 1 output file, got %d", len(outputFiles)) + // List all files in the temp directory for debugging + files, _ := filepath.Glob(filepath.Join(tempDir, "*")) + t.Fatalf("Expected 1 output file, got %d. Files in directory: %v", len(outputFiles), files) } // Read the content of the output file diff --git a/internal/scraper/scraper_test.go b/internal/scraper/scraper_test.go index df36dec..ebe3a6d 100644 --- a/internal/scraper/scraper_test.go +++ b/internal/scraper/scraper_test.go @@ -5,6 +5,7 @@ import ( "net/http" "net/http/httptest" "strings" + "reflect" ) func TestIsAllowedURL(t *testing.T) {