From b753c6e02f1f21bb9932dac26a8d6744da1b2315 Mon Sep 17 00:00:00 2001 From: Jon Cope Date: Mon, 17 Jun 2024 16:08:11 -0500 Subject: [PATCH] installing from the local repo can sometimes experience low transfer rates, which triggers an error message but is not fatal. since it's desirable to sometimes fail due to an error (just not this one), the best option is to give the transfer some extra time to recover Signed-off-by: Jon Cope --- test/resources/microshift-rpm.resource | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/resources/microshift-rpm.resource b/test/resources/microshift-rpm.resource index 87200b554a..b4d2860612 100644 --- a/test/resources/microshift-rpm.resource +++ b/test/resources/microshift-rpm.resource @@ -17,8 +17,10 @@ Install MicroShift RPM Packages From System Repo [Arguments] ${version} ${check_warnings}=True # Allow erasing because update may require a new version of openvswitch # and major versions of openvswitch are separate packages that obsolete - # each other. - ${stdout}= Command Should Work dnf install -y --allowerasing 'microshift-${version}' + # each other. Override default timeout to 2 min (-R 2) because the transmission rate sometimes dips below the + # minrate threshold. This is not a fatal error and should not fail the test, so raising the timeout only helps to + # keep logs clean of flakey error messages. + ${stdout}= Command Should Work dnf install -q -R 2 -y --allowerasing 'microshift-${version}' IF ${check_warnings} # Look for all warnings and errors before testing so that the log # shows the output for both.