Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(playwighttesting): Removed cancellationToken from SetupAsync method since NUnit does not allow additional params #46566

Merged
merged 4 commits into from
Oct 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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() { }
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,11 @@ public PlaywrightServiceNUnit(TokenCredential? credential = null)
/// <summary>
/// Setup the resources utilized by Playwright service.
/// </summary>
/// <param name="cancellationToken">Cancellation token.</param>
/// <returns></returns>
[OneTimeSetUp]
public async Task SetupAsync(CancellationToken cancellationToken = default)
public async Task SetupAsync()
{
await InitializeAsync(cancellationToken).ConfigureAwait(false);
await InitializeAsync().ConfigureAwait(false);
}

/// <summary>
Expand Down