test: extend timeout for CPU usage going back to idle

In a recent PCP update pmie_check consumes a lot of CPU which
interferes with waiting for idle CPU usage.
This commit is contained in:
Jelle van der Waa 2022-11-08 13:31:24 +01:00 committed by Jelle van der Waa
parent b53fe31804
commit 35b9360191
1 changed files with 2 additions and 1 deletions

View File

@ -818,7 +818,8 @@ password=foobar
wait(lambda: progressValue(1) > 75)
m.execute("pkill -e -f [c]at.*urandom")
# should go back to idle usage
wait(lambda: progressValue(1) < 20)
# HACK: work around pmie CPU usage https://bugzilla.redhat.com/show_bug.cgi?id=2140572
wait(lambda: progressValue(1) < 20, tries=200)
# memory: our test machines should use a reasonable chunk of available memory; MiB or GiB
b.wait_in_text(".system-usage tr:nth-child(2)", "iB")