diff --git a/test/integration/consul-container/test/troubleshoot/troubleshoot_upstream_test.go b/test/integration/consul-container/test/troubleshoot/troubleshoot_upstream_test.go index 1c13b7ec6488..704b47e6fd20 100644 --- a/test/integration/consul-container/test/troubleshoot/troubleshoot_upstream_test.go +++ b/test/integration/consul-container/test/troubleshoot/troubleshoot_upstream_test.go @@ -28,6 +28,7 @@ func TestTroubleshootUpstream_Success(t *testing.T) { // wait for envoy time.Sleep(5 * time.Second) _, outputReader, err := clientSidecar.Exec(context.Background(), []string{"consul", "troubleshoot", "upstreams", "-envoy-admin-endpoint", fmt.Sprintf("localhost:%v", port)}) + require.NoError(t, err) buf, err := io.ReadAll(outputReader) require.NoError(t, err) require.Contains(t, string(buf), libservice.StaticServerServiceName)