Skip to content

Commit 1e9fb96

Browse files
Generate async files
1 parent deb91ce commit 1e9fb96

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

src/NHibernate.Test/Async/Hql/Ast/BulkManipulation.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -884,7 +884,7 @@ public async Task SimpleDeleteOnAnimalAsync()
884884
{
885885
if (Dialect.HasSelfReferentialForeignKeyBug)
886886
{
887-
Assert.Ignore($"self referential FK bug");
887+
Assert.Ignore("self referential FK bug - HQL delete testing");
888888
return;
889889
}
890890

src/NHibernate.Test/Async/SystemTransactions/DistributedSystemTransactionFixture.cs

+3-2
Original file line numberDiff line numberDiff line change
@@ -528,10 +528,11 @@ public async Task CanUseSessionOutsideOfScopeAfterScopeAsync(bool explicitFlush)
528528
}
529529
var count = 0;
530530
Assert.DoesNotThrowAsync(async () => count = await (s.Query<Person>().CountAsync()), "Failed using the session after scope.");
531-
if (count != 1)
531+
const int expectedCount = 1;
532+
if (count != expectedCount)
532533
// We are not testing that here, so just issue a warning. Do not use DodgeTransactionCompletionDelayIfRequired
533534
// before previous assert. We want to ascertain the session is usable in any cases.
534-
Assert.Warn($"Unexpected entity count: {count} instead of {1}. The transaction seems to have a delayed commit.");
535+
Assert.Warn($"Unexpected entity count: {count} instead of {expectedCount}. The transaction seems to have a delayed commit.");
535536
}
536537
}
537538

src/NHibernate.Test/Async/SystemTransactions/SystemTransactionFixture.cs

+3-2
Original file line numberDiff line numberDiff line change
@@ -296,10 +296,11 @@ public async Task CanUseSessionOutsideOfScopeAfterScopeAsync(bool explicitFlush)
296296
}
297297
var count = 0;
298298
Assert.DoesNotThrowAsync(async () => count = await (s.Query<Person>().CountAsync()), "Failed using the session after scope.");
299-
if (count != 1)
299+
const int expectedCount = 1;
300+
if (count != expectedCount)
300301
// We are not testing that here, so just issue a warning. Do not use DodgeTransactionCompletionDelayIfRequired
301302
// before previous assert. We want to ascertain the session is usable in any cases.
302-
Assert.Warn($"Unexpected entity count: {count} instead of {1}. The transaction seems to have a delayed commit.");
303+
Assert.Warn($"Unexpected entity count: {count} instead of {expectedCount}. The transaction seems to have a delayed commit.");
303304
}
304305
}
305306

0 commit comments

Comments
 (0)