From ad3eeaedc5a9042682f236f43dd939b2e620d07c Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Sat, 26 Jun 2021 19:12:52 +0200 Subject: tests, maxlen.bash: speed up TestMaxlen using QUICK=1 From >6 to <1 second. --- tests/defaults/main_test.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'tests/defaults/main_test.go') diff --git a/tests/defaults/main_test.go b/tests/defaults/main_test.go index 4e5ffea..b356f41 100644 --- a/tests/defaults/main_test.go +++ b/tests/defaults/main_test.go @@ -380,6 +380,7 @@ func TestMaxlen(t *testing.T) { t.Fatal(err) } cmd := exec.Command("../../contrib/maxlen.bash", workDir) + cmd.Env = []string{"QUICK=1"} out, err := cmd.CombinedOutput() if err != nil { t.Log(string(out)) @@ -387,11 +388,7 @@ func TestMaxlen(t *testing.T) { } want := ` Maximum filename length: 255 - Maximum dirname length: 255 - Maximum path length with 1 chars per subdir: 4095 - Maximum path length with 10 chars per subdir: 4095 Maximum path length with 100 chars per subdir: 4095 - Maximum path length with 255 chars per subdir: 4095 ` if !strings.HasSuffix(string(out), want) { t.Errorf("wrong output: %s", string(out)) -- cgit v1.2.3