File tree Expand file tree Collapse file tree 3 files changed +7
-5
lines changed
src/NHibernate.Test/Async Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -884,7 +884,7 @@ public async Task SimpleDeleteOnAnimalAsync()
884
884
{
885
885
if ( Dialect . HasSelfReferentialForeignKeyBug )
886
886
{
887
- Assert . Ignore ( $ "self referential FK bug") ;
887
+ Assert . Ignore ( "self referential FK bug - HQL delete testing " ) ;
888
888
return ;
889
889
}
890
890
Original file line number Diff line number Diff line change @@ -528,10 +528,11 @@ public async Task CanUseSessionOutsideOfScopeAfterScopeAsync(bool explicitFlush)
528
528
}
529
529
var count = 0 ;
530
530
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 )
532
533
// We are not testing that here, so just issue a warning. Do not use DodgeTransactionCompletionDelayIfRequired
533
534
// 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.") ;
535
536
}
536
537
}
537
538
Original file line number Diff line number Diff line change @@ -296,10 +296,11 @@ public async Task CanUseSessionOutsideOfScopeAfterScopeAsync(bool explicitFlush)
296
296
}
297
297
var count = 0 ;
298
298
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 )
300
301
// We are not testing that here, so just issue a warning. Do not use DodgeTransactionCompletionDelayIfRequired
301
302
// 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.") ;
303
304
}
304
305
}
305
306
You can’t perform that action at this time.
0 commit comments