1
0
Эх сурвалжийг харах

lib/scanner: Skip block size hysteresis test in -short mode

This burns like a percent of my laptop battery on every invocation...
Jakob Borg 7 жил өмнө
parent
commit
8b15624f7d

+ 4 - 0
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
 	// Verify that we select the right block size in the presence of old
 	// file information.
 	// file information.
 
 
+	if testing.Short() {
+		t.Skip("long and hard test")
+	}
+
 	sf := fs.NewWalkFilesystem(&singleFileFS{
 	sf := fs.NewWalkFilesystem(&singleFileFS{
 		name:     "testfile.dat",
 		name:     "testfile.dat",
 		filesize: 500 << 20, // 500 MiB
 		filesize: 500 << 20, // 500 MiB