From 3d30aa55ce50dd6335fc14928c4c594d74e669b9 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 25 Oct 2020 10:10:56 +0000 Subject: [PATCH] Int cast --- tests.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests.py b/tests.py index fca8e91b8..9356609ad 100644 --- a/tests.py +++ b/tests.py @@ -2098,7 +2098,7 @@ def testConstantTimeStringCheck(): avTime2 = ((end - start) * 1000000 / itterations) timeDiffMicroseconds = abs(avTime2 - avTime1) # time difference should be less than 10uS - assert timeDiffMicroseconds < 10 + assert int(timeDiffMicroseconds) < 10 # change multiple characters and observe timing difference start = time.time() @@ -2109,7 +2109,7 @@ def testConstantTimeStringCheck(): avTime2 = ((end - start) * 1000000 / itterations) timeDiffMicroseconds = abs(avTime2 - avTime1) # time difference should be less than 10uS - assert timeDiffMicroseconds < 10 + assert int(timeDiffMicroseconds) < 10 def testReplaceEmailQuote():