From 71fce20d7efbd8b896fcda178a45132a6c63e153 Mon Sep 17 00:00:00 2001 From: Michael Render Date: Fri, 6 Dec 2024 13:30:32 -0500 Subject: [PATCH] remove unnecessary `Task` return --- dotnet/test/common/NavigationTest.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dotnet/test/common/NavigationTest.cs b/dotnet/test/common/NavigationTest.cs index 11a4309c18953..6dce194d446d4 100644 --- a/dotnet/test/common/NavigationTest.cs +++ b/dotnet/test/common/NavigationTest.cs @@ -112,12 +112,11 @@ public void ShouldRefreshPage() [Test] [NeedsFreshDriver(IsCreatedBeforeTest = true)] - public Task ShouldNotHaveProblemNavigatingWithNoPagesBrowsedAsync() + public void ShouldNotHaveProblemNavigatingWithNoPagesBrowsedAsync() { var navigation = driver.Navigate(); Assert.That(async () => await navigation.BackAsync(), Throws.Nothing); Assert.That(async () => await navigation.ForwardAsync(), Throws.Nothing); - return Task.CompletedTask; } [Test]