Skip to content

Commit

Permalink
system-test: sleep 90 seconds between runs (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
yprokule authored Jun 11, 2024
1 parent 1eab2f3 commit a2266ed
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit a2266ed

Please sign in to comment.