From 36e0a6fb555d10ba36f09d63f1fb7b647fc6b93a Mon Sep 17 00:00:00 2001 From: Simon Josefsson Date: Tue, 7 Oct 2025 15:19:18 +0200 Subject: [PATCH] Don't use LICENSE as a self-test sample file --- ls_formatting_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ls_formatting_test.go b/ls_formatting_test.go index d6e5e036..2c4b9995 100644 --- a/ls_formatting_test.go +++ b/ls_formatting_test.go @@ -21,8 +21,8 @@ func TestRunLsWithExamplesDirectory(t *testing.T) { runLsTestHelper(t, result, typeDirectory, path) } -func TestRunLsWithLicensesFile(t *testing.T) { - path := "LICENSE" +func TestRunLsWithSourceFile(t *testing.T) { + path := "ls_formatting_test.go" item, _ := os.Stat(path) result := runLs(nil, item) runLsTestHelper(t, result, typeFile, path) @@ -35,8 +35,8 @@ func TestRunLsWithExamplesDirectoryWithOSLookup(t *testing.T) { runLsTestHelper(t, result, typeDirectory, path) } -func TestRunLsWithLicensesFileWithOSLookup(t *testing.T) { - path := "LICENSE" +func TestRunLsWithSourceFileWithOSLookup(t *testing.T) { + path := "ls_formatting_test.go" item, _ := os.Stat(path) result := runLs(osIDLookup{}, item) runLsTestHelper(t, result, typeFile, path)