Skip to content

Commit c6d89fd

Browse files
committed
fix review comment
1 parent 77f6450 commit c6d89fd

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

tests/NuGetUtility.Test/LicenseValidator/UrlToLicenseMappingTest.cs

+4-5
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ namespace NuGetUtility.Test.LicenseValidator
1010
[TestFixture]
1111
public class UrlToLicenseMappingTest
1212
{
13-
[Ignore("chrome")]
1413
[Parallelizable(scope: ParallelScope.All)]
1514
[TestCaseSource(typeof(UrlToLicenseMapping), nameof(UrlToLicenseMapping.Default))]
1615
public async Task License_Should_Be_Available_And_Match_Expected_License(KeyValuePair<Uri, string> mappedValue)
@@ -21,7 +20,7 @@ public async Task License_Should_Be_Available_And_Match_Expected_License(KeyValu
2120
try
2221
{
2322
using var driver = new DisposableWebDriver();
24-
driver.Navigate().GoToUrl(mappedValue.Key.ToString());
23+
await driver.Navigate().GoToUrlAsync(mappedValue.Key.ToString());
2524

2625
await Verify(driver.FindElement(By.TagName("body")).Text).HashParameters().UseStringComparer(CompareLicense);
2726
return;
@@ -33,14 +32,14 @@ public async Task License_Should_Be_Available_And_Match_Expected_License(KeyValu
3332
throw;
3433
}
3534
retryCount++;
36-
TestContext.Out.WriteLine($"Failed to check license for the {retryCount} time - retrying");
37-
TestContext.Out.WriteLine(e);
35+
await TestContext.Out.WriteLineAsync($"Failed to check license for the {retryCount} time - retrying");
36+
await TestContext.Out.WriteLineAsync(e.ToString());
3837
}
3938
}
4039

4140
}
4241

43-
private Task<CompareResult> CompareLicense(string received, string verified, IReadOnlyDictionary<string, object> context)
42+
private static Task<CompareResult> CompareLicense(string received, string verified, IReadOnlyDictionary<string, object> context)
4443
{
4544
return Task.FromResult(new CompareResult((!string.IsNullOrWhiteSpace(verified)) && received.Contains(verified)));
4645
}

0 commit comments

Comments
 (0)