mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-16 07:13:53 +00:00
Clearer logging from e2e DialFromNode
This commit is contained in:
parent
44aa1679c9
commit
ac87601f1e
@ -255,12 +255,15 @@ func (config *NetworkingTestConfig) DialFromNode(protocol, targetIP string, targ
|
|||||||
eps.Insert(trimmed)
|
eps.Insert(trimmed)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Logf("Waiting for %+v endpoints, got endpoints %+v", expectedEps.Difference(eps), eps)
|
|
||||||
|
|
||||||
// Check against i+1 so we exit if minTries == maxTries.
|
// Check against i+1 so we exit if minTries == maxTries.
|
||||||
if (eps.Equal(expectedEps) || eps.Len() == 0 && expectedEps.Len() == 0) && i+1 >= minTries {
|
if eps.Equal(expectedEps) && i+1 >= minTries {
|
||||||
|
Logf("Found all expected endpoints: %+v", eps.List())
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Logf("Waiting for %+v endpoints (expected=%+v, actual=%+v)", expectedEps.Difference(eps).List(), expectedEps.List(), eps.List())
|
||||||
|
|
||||||
// TODO: get rid of this delay #36281
|
// TODO: get rid of this delay #36281
|
||||||
time.Sleep(hitEndpointRetryDelay)
|
time.Sleep(hitEndpointRetryDelay)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user