Skip to content

Commit ae4e06a

Browse files
authored
Merge pull request robotframework#2423 from philsc/deflake_test_get_current_timetuple_excluding_millis
De-flake test_get_current_timetuple_excluding_millis
2 parents a200b6a + a3c6773 commit ae4e06a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

utest/utils/test_robottime.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ def test_get_timetuple_excluding_millis(self):
2222

2323
def test_get_current_timetuple_excluding_millis(self):
2424
while True:
25-
expected = time.localtime()
25+
expected = time.localtime(time.time())
2626
actual = _get_timetuple()
2727
# make sure got same times and _get_timetuple() did not round millis
28-
if expected == time.localtime() and actual[-1] > 0:
28+
if expected == time.localtime(time.time()) and actual[-1] > 0:
2929
break
3030
assert_equal(actual[:-1], expected[:6])
3131

0 commit comments

Comments
 (0)