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

This burns like a percent of my laptop battery on every invocation...
This commit is contained in:
Jakob Borg 2018-06-02 11:18:33 +00:00
parent 5baa432906
commit 8b15624f7d

View File

@ -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