فهرست منبع

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 سال پیش
والد
کامیت
8b15624f7d
1فایلهای تغییر یافته به همراه4 افزوده شده و 0 حذف شده
  1. 4 0
      lib/scanner/walk_test.go

+ 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
 	// file information.
 
+	if testing.Short() {
+		t.Skip("long and hard test")
+	}
+
 	sf := fs.NewWalkFilesystem(&singleFileFS{
 		name:     "testfile.dat",
 		filesize: 500 << 20, // 500 MiB