Skip to content

Commit

Permalink
test: wait until the memory usage is the expected bigger value
Browse files Browse the repository at this point in the history
It can take a few renders until the percentage is exactly bigger or
equal to the new expected value.
  • Loading branch information
jelly committed Jul 2, 2024
1 parent 268ad07 commit fe6b5f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/verify/check-system-info
Original file line number Diff line number Diff line change
Expand Up @@ -723,8 +723,8 @@ password=foobar
m.execute("while [ ! -e /tmp/hogged ]; do sleep 1; done")
# bars update every 5s
time.sleep(8)
testlib.wait(lambda: progressValue(2) >= initial_usage + 10)
hog_usage = progressValue(2)
self.assertGreater(hog_usage, initial_usage + 10)

m.execute("kill %d" % mem_hog)
# Should go back to initial_usage, but it doesn't always, for example on fedora.
Expand Down

0 comments on commit fe6b5f1

Please sign in to comment.