Merge pull request #63736 from thockin/bad_sleep_duration
Automatic merge from submit-queue (batch tested with PRs 63686, 63736). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. Fix bad sleep - int as duration Sleep(2) is probably not what was intended. **Release note**: ```release-note NONE ```
This commit is contained in:
		@@ -1928,7 +1928,7 @@ func execSourceipTest(f *framework.Framework, c clientset.Interface, ns, nodeNam
 | 
			
		||||
	timeout := 2 * time.Minute
 | 
			
		||||
	framework.Logf("Waiting up to %v wget %s", timeout, serviceIPPort)
 | 
			
		||||
	cmd := fmt.Sprintf(`wget -T 30 -qO- %s | grep client_address`, serviceIPPort)
 | 
			
		||||
	for start := time.Now(); time.Since(start) < timeout; time.Sleep(2) {
 | 
			
		||||
	for start := time.Now(); time.Since(start) < timeout; time.Sleep(2 * time.Second) {
 | 
			
		||||
		stdout, err = framework.RunHostCmd(execPod.Namespace, execPod.Name, cmd)
 | 
			
		||||
		if err != nil {
 | 
			
		||||
			framework.Logf("got err: %v, retry until timeout", err)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user