diff --git a/scripts/test/ConvertToWavelengthTest.py b/scripts/test/ConvertToWavelengthTest.py
index a07407479eb2f2e49ba2e6ad19ee41691fbc7e55..284241aca53e16032b2775373b5317d63f499360 100644
--- a/scripts/test/ConvertToWavelengthTest.py
+++ b/scripts/test/ConvertToWavelengthTest.py
@@ -115,7 +115,7 @@ class ConvertToWavelengthTest(unittest.TestCase):
     def cropped_x_range(cls, ws, index):
         det_ws_x = ws.readX(index)
         mask = ws.readY(index) != 0 # CropWorkspace will only zero out y values! so we need to translate those to an x range
-        cropped_x = det_ws_x[mask]
+        cropped_x = det_ws_x[:-1][mask]
         return cropped_x[0], cropped_x[-1]
 
     def test_convert(self):