diff --git a/tests/test_image.py b/tests/test_image.py
index c722719b2edb9278d13e05dd1a13505d6f016e2e..d468b4b76a2216b8045b7f2b15b947d4136c6510 100644
--- a/tests/test_image.py
+++ b/tests/test_image.py
@@ -1047,9 +1047,9 @@ def test_image_resample(seed):
         fname = op.join(td, 'test.nii')
 
         # Random base image shapes
-        for i in range(50):
+        for i in range(25):
 
-            shape = np.random.randint(5, 100, 3)
+            shape = np.random.randint(5, 50, 3)
             make_random_image(fname, shape)
             img = fslimage.Image(fname, mmap=False)
 
@@ -1061,7 +1061,7 @@ def test_image_resample(seed):
             # Random resampled image shapes
             for j in range(10):
 
-                rshape        = np.random.randint(5, 100, 3)
+                rshape        = np.random.randint(5, 50, 3)
                 resampled, xf = img.resample(rshape, order=0)
 
                 img.save('base.nii.gz')