From dcfb2ef3982985c8d6755b35e983a3d9d01d400a Mon Sep 17 00:00:00 2001 From: Kashish Gupta <90824921+kashish2508@users.noreply.github.com> Date: Mon, 14 Oct 2024 23:24:03 +0530 Subject: [PATCH] fix(playwighttesting): Removed cancellationToken from SetupAsync method since NUnit does not allow additional params (#46566) * Removed parameter from SetupAsync method. * update * undo last commit * update --------- Co-authored-by: guptakashish --- ...eloper.MicrosoftPlaywrightTesting.NUnit.netstandard2.0.cs | 2 +- .../src/PlaywrightServiceNUnit.cs | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/sdk/playwrighttesting/Azure.Developer.MicrosoftPlaywrightTesting.NUnit/api/Azure.Developer.MicrosoftPlaywrightTesting.NUnit.netstandard2.0.cs b/sdk/playwrighttesting/Azure.Developer.MicrosoftPlaywrightTesting.NUnit/api/Azure.Developer.MicrosoftPlaywrightTesting.NUnit.netstandard2.0.cs index 7e6eac3ac4c3..52f0189d991e 100644 --- a/sdk/playwrighttesting/Azure.Developer.MicrosoftPlaywrightTesting.NUnit/api/Azure.Developer.MicrosoftPlaywrightTesting.NUnit.netstandard2.0.cs +++ b/sdk/playwrighttesting/Azure.Developer.MicrosoftPlaywrightTesting.NUnit/api/Azure.Developer.MicrosoftPlaywrightTesting.NUnit.netstandard2.0.cs @@ -6,7 +6,7 @@ public partial class PlaywrightServiceNUnit : Azure.Developer.MicrosoftPlaywrigh public PlaywrightServiceNUnit(Azure.Core.TokenCredential? credential = null) : base (default(Azure.Developer.MicrosoftPlaywrightTesting.TestLogger.PlaywrightServiceOptions), default(Azure.Core.TokenCredential)) { } public static Azure.Developer.MicrosoftPlaywrightTesting.TestLogger.PlaywrightServiceOptions playwrightServiceOptions { get { throw null; } } [NUnit.Framework.OneTimeSetUpAttribute] - public System.Threading.Tasks.Task SetupAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public System.Threading.Tasks.Task SetupAsync() { throw null; } [NUnit.Framework.OneTimeTearDownAttribute] public void Teardown() { } } diff --git a/sdk/playwrighttesting/Azure.Developer.MicrosoftPlaywrightTesting.NUnit/src/PlaywrightServiceNUnit.cs b/sdk/playwrighttesting/Azure.Developer.MicrosoftPlaywrightTesting.NUnit/src/PlaywrightServiceNUnit.cs index 46141565b2e9..c943468e3cdf 100644 --- a/sdk/playwrighttesting/Azure.Developer.MicrosoftPlaywrightTesting.NUnit/src/PlaywrightServiceNUnit.cs +++ b/sdk/playwrighttesting/Azure.Developer.MicrosoftPlaywrightTesting.NUnit/src/PlaywrightServiceNUnit.cs @@ -41,12 +41,11 @@ public PlaywrightServiceNUnit(TokenCredential? credential = null) /// /// Setup the resources utilized by Playwright service. /// - /// Cancellation token. /// [OneTimeSetUp] - public async Task SetupAsync(CancellationToken cancellationToken = default) + public async Task SetupAsync() { - await InitializeAsync(cancellationToken).ConfigureAwait(false); + await InitializeAsync().ConfigureAwait(false); } ///