File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 22// The .NET Foundation licenses this file to you under the MIT license.
33// See the LICENSE file in the project root for more information.
44
5- using Microsoft . EntityFrameworkCore . Storage . ValueConversion ;
65using Microsoft . EntityFrameworkCore ;
6+ using Microsoft . EntityFrameworkCore . Storage . ValueConversion ;
77using Xunit . Abstractions ;
8- using Microsoft . EntityFrameworkCore . Diagnostics ;
98
109namespace CommunityToolkit . Datasync . TestCommon . Databases ;
1110
@@ -33,7 +32,10 @@ internal void InitializeDatabase(bool clearEntities)
3332 {
3433 if ( clearEntities )
3534 {
36- RemoveRange ( Movies . ToList ( ) ) ;
35+ // NOTE: sync-over-async is used here. This is bad, but it is only used in the test suite.
36+ // The test suite is not performance sensitive, so this is acceptable.
37+ List < CosmosEntityMovie > movies = Movies . ToListAsync ( ) . Result ;
38+ RemoveRange ( movies ) ;
3739 SaveChanges ( ) ;
3840 }
3941 }
You can’t perform that action at this time.
0 commit comments