Skip to content

Commit

Permalink
give test more time && rename test to make it unique
Browse files Browse the repository at this point in the history
  • Loading branch information
qdraw committed Oct 20, 2024
1 parent 22dc337 commit 7000efa
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -214,13 +214,13 @@ public async Task StartAsync_CancelBeforeStart()
// use reflection to hit protected method
var method = service.GetType().GetTypeInfo().GetDeclaredMethod("ExecuteAsync");
Assert.IsNotNull(method);
method.Invoke(service, new object[] { cancelTokenSource.Token });
method.Invoke(service, [cancelTokenSource.Token]);
// should stop and not hit timeout
}

[TestMethod]
[Timeout(1000)]
public async Task Update_End_StopAsync_Test()
[Timeout(2000)]
public async Task UpdateBackgroundTaskQueue_Update_End_StopAsync_Test()
{
var logger = new FakeIWebLogger();
var service =
Expand Down

0 comments on commit 7000efa

Please sign in to comment.