diff --git a/src/image/gif/fuzz_test.go b/src/image/gif/fuzz_test.go index 3ddf15d80f33e..a4bc06ed69c8f 100644 --- a/src/image/gif/fuzz_test.go +++ b/src/image/gif/fuzz_test.go @@ -14,6 +14,10 @@ import ( ) func FuzzDecode(f *testing.F) { + if testing.Short() { + f.Skip("Skipping in short mode") + } + testdata, err := os.ReadDir("../testdata") if err != nil { f.Fatalf("failed to read testdata directory: %s", err) diff --git a/src/image/jpeg/fuzz_test.go b/src/image/jpeg/fuzz_test.go index 716f06f43cff2..bd534a921d7ce 100644 --- a/src/image/jpeg/fuzz_test.go +++ b/src/image/jpeg/fuzz_test.go @@ -14,6 +14,10 @@ import ( ) func FuzzDecode(f *testing.F) { + if testing.Short() { + f.Skip("Skipping in short mode") + } + testdata, err := os.ReadDir("../testdata") if err != nil { f.Fatalf("failed to read testdata directory: %s", err) diff --git a/src/image/png/fuzz_test.go b/src/image/png/fuzz_test.go index 22b3ef082a458..4b639459e7159 100644 --- a/src/image/png/fuzz_test.go +++ b/src/image/png/fuzz_test.go @@ -14,6 +14,10 @@ import ( ) func FuzzDecode(f *testing.F) { + if testing.Short() { + f.Skip("Skipping in short mode") + } + testdata, err := os.ReadDir("../testdata") if err != nil { f.Fatalf("failed to read testdata directory: %s", err)