diff --git a/tests/unit/core/data/test_tiling.py b/tests/unit/core/data/test_tiling.py
index b595b6932fb..c1294aee76d 100644
--- a/tests/unit/core/data/test_tiling.py
+++ b/tests/unit/core/data/test_tiling.py
@@ -516,7 +516,7 @@ def test_seg_tile_merge(self, fxt_data_config):
     def test_seg_tiler(self, mocker):
         rng = np.random.default_rng()
         rnd_tile_size = rng.integers(low=100, high=500)
-        rnd_tile_overlap = rng.random()
+        rnd_tile_overlap = min(rng.random(), 0.99)
         image_size = rng.integers(low=1000, high=5000)
         np_image = np.zeros((image_size, image_size, 3), dtype=np.uint8)