From c92daee4c73eb7cbeb8f7b4ac461dd07710e2f73 Mon Sep 17 00:00:00 2001 From: JoshLove-msft <54595583+JoshLove-msft@users.noreply.github.com> Date: Fri, 17 Dec 2021 22:33:19 -0800 Subject: [PATCH] Disable failing test and increase test-proxy parsing time (#26004) * Revert single instance test-proxy * Allow more time to get port * Move mismatch check * Remove method * Ignore test * revert * Add back singleton * line --- sdk/core/Azure.Core.TestFramework/src/TestProxy.cs | 2 +- .../ClientTestBaseMultiVersionTestsWithSpecificVersions.cs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/sdk/core/Azure.Core.TestFramework/src/TestProxy.cs b/sdk/core/Azure.Core.TestFramework/src/TestProxy.cs index ea50340c4819..bda8c38bfa6d 100644 --- a/sdk/core/Azure.Core.TestFramework/src/TestProxy.cs +++ b/sdk/core/Azure.Core.TestFramework/src/TestProxy.cs @@ -98,7 +98,7 @@ private TestProxy(string proxyPath) }); int lines = 0; - while ((_proxyPortHttp == null || _proxyPortHttps == null) && lines++ < 20) + while ((_proxyPortHttp == null || _proxyPortHttps == null) && lines++ < 50) { string outputLine = _testProxyProcess.StandardOutput.ReadLine(); // useful for debugging diff --git a/sdk/core/Azure.Core/tests/ClientTestBaseMultiVersionTestsWithSpecificVersions.cs b/sdk/core/Azure.Core/tests/ClientTestBaseMultiVersionTestsWithSpecificVersions.cs index 4082f0f7cb2a..a8d2677ed3e8 100644 --- a/sdk/core/Azure.Core/tests/ClientTestBaseMultiVersionTestsWithSpecificVersions.cs +++ b/sdk/core/Azure.Core/tests/ClientTestBaseMultiVersionTestsWithSpecificVersions.cs @@ -28,6 +28,7 @@ public ClientTestBaseMultiVersionTestsWithSpecificVersions(bool isAsync, TestCli } [Test] + [Ignore("Sparse checkout issue when running resource manager pipeline")] public async Task HasValidVersion() { var testClientOptions = new TestClientOptions(_version) { Transport = new MockTransport(new MockResponse(200))};