From 8b15624f7d0665cbad3a6e69ea7c82b2b5031c5d Mon Sep 17 00:00:00 2001 From: Jakob Borg Date: Sat, 2 Jun 2018 11:18:33 +0000 Subject: [PATCH] lib/scanner: Skip block size hysteresis test in -short mode This burns like a percent of my laptop battery on every invocation... --- lib/scanner/walk_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/scanner/walk_test.go b/lib/scanner/walk_test.go index 6e7ce6a39..21f08a8c3 100644 --- a/lib/scanner/walk_test.go +++ b/lib/scanner/walk_test.go @@ -341,6 +341,10 @@ func TestBlocksizeHysteresis(t *testing.T) { // Verify that we select the right block size in the presence of old // file information. + if testing.Short() { + t.Skip("long and hard test") + } + sf := fs.NewWalkFilesystem(&singleFileFS{ name: "testfile.dat", filesize: 500 << 20, // 500 MiB