You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The utility to create a port forward, when started, does not wait until the port forward is available for use. This can cause a race condition in tests which expect to be able to make requests against the forwarded port immediately upon Start returning.
Expected Behavior
Start should not return without an error until the port is reachable
then immediately try a request against the forwarded port. It is possible that it will work appropriately, but it will be flaky at best since the port is not guaranteed to be available yet
Gloo Edge Product
Open Source
Gloo Edge Version
v1.17.0
Kubernetes Version
All
Describe the bug
The utility to create a port forward, when started, does not wait until the port forward is available for use. This can cause a race condition in tests which expect to be able to make requests against the forwarded port immediately upon
Start
returning.Expected Behavior
Start
should not return without an error until the port is reachableSteps to reproduce the bug
Set up a test that creates a port forward using
then immediately try a request against the forwarded port. It is possible that it will work appropriately, but it will be flaky at best since the port is not guaranteed to be available yet
Additional Environment Detail
No response
Additional Context
gloo/pkg/utils/kubeutils/portforward/cli_portforwarder.go
Line 40 in 3e00d81
https://github.com/solo-io/solo-projects/pull/5973/files#r1560360903
The text was updated successfully, but these errors were encountered: