From a2266ed744c89a51cb707edf36c169c56ffa4616 Mon Sep 17 00:00:00 2001 From: Yurii Prokulevych Date: Tue, 11 Jun 2024 17:33:14 +0200 Subject: [PATCH] system-test: sleep 90 seconds between runs (#41) --- .../rdscore/internal/rdscorecommon/sriov-validation.go | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/tests/system-tests/rdscore/internal/rdscorecommon/sriov-validation.go b/tests/system-tests/rdscore/internal/rdscorecommon/sriov-validation.go index 65a507219..1642648d3 100644 --- a/tests/system-tests/rdscore/internal/rdscorecommon/sriov-validation.go +++ b/tests/system-tests/rdscore/internal/rdscorecommon/sriov-validation.go @@ -516,17 +516,19 @@ func verifySRIOVConnectivity(nsOneName, nsTwoName, deployOneLabels, deployTwoLab podOneResult, err = podOne.ExecCommand(sendDataOneCmd, podOne.Definition.Spec.Containers[0].Name) if err != nil { + glog.V(rdscoreparams.RDSCoreLogLevel).Infof("Failed to run command within pod: %v", sendDataOneCmd) glog.V(rdscoreparams.RDSCoreLogLevel).Infof("Failed to run command within pod: %v", err) return false } + glog.V(rdscoreparams.RDSCoreLogLevel).Infof("Successfully run command %v within container", sendDataOneCmd) glog.V(rdscoreparams.RDSCoreLogLevel).Infof("Successfully run command within container %q", podOne.Definition.Spec.Containers[0].Name) glog.V(rdscoreparams.RDSCoreLogLevel).Infof("Result: %v - %s", podOneResult, &podOneResult) return true - }).WithContext(ctx).WithPolling(5*time.Second).WithTimeout(1*time.Minute).Should(BeTrue(), + }).WithContext(ctx).WithPolling(5*time.Second).WithTimeout(5*time.Minute).Should(BeTrue(), fmt.Sprintf("Failed to send data from pod %s", podOne.Definition.Name)) verifyMsgInPodLogs(podTwo, msgOne, podTwo.Definition.Spec.Containers[0].Name, timeStart) @@ -567,6 +569,9 @@ func VerifySRIOVWorkloadsOnSameNode(ctx SpecContext) { }, 6*time.Minute, 3*time.Second).WithContext(ctx).Should(BeTrue(), "pods matching label() still present") + By("Sleeping 90 seconds") + time.Sleep(90 * time.Second) + By("Removing ConfigMap") deleteConfigMap(sriovDeploy1CMName, RDSCoreConfig.WlkdSRIOVOneNS) @@ -730,6 +735,9 @@ func VerifySRIOVWorkloadsOnDifferentNodes(ctx SpecContext) { }, 6*time.Minute, 3*time.Second).WithContext(ctx).Should(BeTrue(), "pods matching label() still present") + By("Sleeping 90 seconds") + time.Sleep(90 * time.Second) + By("Removing ConfigMap") deleteConfigMap(sriovDeploy2CMName, RDSCoreConfig.WlkdSRIOVOneNS)