Browse Source
Remove unused CancellationToken from test
pull/23329/head
maliming
1 year ago
No known key found for this signature in database
GPG Key ID: A646B9CB645ECEA4
1 changed files with
1 additions and
5 deletions
-
framework/test/Volo.Abp.EntityFrameworkCore.Tests/Volo/Abp/EntityFrameworkCore/AbpEfCoreNavigationHelper_Tests.cs
|
|
|
@ -1,7 +1,6 @@ |
|
|
|
using System; |
|
|
|
using System.Diagnostics; |
|
|
|
using System.Linq; |
|
|
|
using System.Threading; |
|
|
|
using System.Threading.Tasks; |
|
|
|
using Shouldly; |
|
|
|
using Volo.Abp.Domain.Repositories; |
|
|
|
@ -84,11 +83,8 @@ public class AbpEfCoreNavigationHelper_Tests : EntityFrameworkCoreTestBase |
|
|
|
stopWatch.Stop(); |
|
|
|
stopWatch.Elapsed.ShouldBeLessThan(batchUpdateTime); |
|
|
|
|
|
|
|
|
|
|
|
var cancellationTokenSource = new CancellationTokenSource(); |
|
|
|
cancellationTokenSource.CancelAfter(batchUpdateTime); |
|
|
|
stopWatch.Restart(); |
|
|
|
var blog = await _blogRepository.GetAsync(blogId, cancellationToken: cancellationTokenSource.Token); |
|
|
|
var blog = await _blogRepository.GetAsync(blogId); |
|
|
|
blog.BlogPosts.Count.ShouldBe(5 * 1000 + 1); |
|
|
|
stopWatch.Stop(); |
|
|
|
stopWatch.Elapsed.ShouldBeLessThan(queryTime); |
|
|
|
|