merge-requests/8/head
Bob Mottram 2020-10-25 10:10:56 +00:00
parent bd77f9f403
commit 3d30aa55ce
1 changed files with 2 additions and 2 deletions

View File

@ -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():