Explorar el Código

Casual optimize

Lith hace 8 meses
padre
commit
c5bb08232f
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      test/Vitorm.Sqlite.MsTest/CommonTest/Property_Bool_Test.cs

+ 3 - 1
test/Vitorm.Sqlite.MsTest/CommonTest/Property_Bool_Test.cs

@@ -13,7 +13,7 @@ namespace Vitorm.MsTest.CommonTest
         [TestMethod]
         public void Test()
         {
-            using var dbContext = DataSource.CreateDbContext();
+            using var dbContext = DataSource.CreateDbContextForWriting();
 
             // #1 Init
             var name = Guid.NewGuid().ToString();
@@ -24,6 +24,8 @@ namespace Vitorm.MsTest.CommonTest
             dbSet.Add(new MyUser { id = 2, enable = true, isEven = true });
             dbSet.Add(new MyUser { id = 3, enable = false, isEven = false });
 
+            DataSource.WaitForUpdate();
+
             // #2 Assert
             {
                 var user = dbSet.Query().Where(m => m.enable == true).OrderBy(m => m.id).First();