From 4b833366422e833db0b92c1136b4a75079f2d801 Mon Sep 17 00:00:00 2001 From: Alejandro Pedraza Date: Mon, 21 Oct 2024 12:26:35 -0500 Subject: [PATCH] Improve debugging in dualstack integration test (#13193) This test has been sporadically flakey, so we add here the `-S` and `--stderr -` flags to the cURL command to show in stdout the actual errors. --- test/integration/deep/dualstack/dualstack_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/integration/deep/dualstack/dualstack_test.go b/test/integration/deep/dualstack/dualstack_test.go index 1a2e072adfc18..6408bc3f7e38e 100644 --- a/test/integration/deep/dualstack/dualstack_test.go +++ b/test/integration/deep/dualstack/dualstack_test.go @@ -33,7 +33,7 @@ func TestMain(m *testing.M) { // IPv6 endpoint. func TestDualStack(t *testing.T) { if !TestHelper.DualStack() { - t.Skip("Skipping Skip DualStack test") + t.Skip("Skipping DualStack test") } TestHelper.WithDataPlaneNamespace(context.Background(), "dualstack-test", map[string]string{}, t, func(t *testing.T, ns string) { @@ -120,7 +120,7 @@ func TestDualStack(t *testing.T) { "-c", "curl", "-n", ns, "--", - "curl", "-s", "http://"+serverIPv4+":8080", + "curl", "-s", "-S", "--stderr", "-", "http://"+serverIPv4+":8080", ) if err != nil { testutil.AnnotatedFatalf(t, "unexpected error", "unexpected error: %v\noutput:\n%s", err, out) @@ -136,7 +136,7 @@ func TestDualStack(t *testing.T) { "-c", "curl", "-n", ns, "--", - "curl", "-s", "http://["+serverIPv6+"]:8080", + "curl", "-s", "-S", "--stderr", "-", "http://["+serverIPv6+"]:8080", ) if err != nil { testutil.AnnotatedFatalf(t, "unexpected error", "unexpected error: %v\noutput:\n%s", err, out) @@ -153,7 +153,7 @@ func TestDualStack(t *testing.T) { "-c", "curl", "-n", ns, "--", - "curl", "-s", "http://ipfamilies-server:8080", + "curl", "-s", "-S", "--stderr", "-", "http://ipfamilies-server:8080", ) if err != nil { testutil.AnnotatedFatalf(t, "unexpected error", "unexpected error: %v\noutput:\n%s", err, out)