Skip to content

Commit fa330b2

Browse files
committed
Smarter test exclusion
1 parent c6ea4a2 commit fa330b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/NHibernate.Test/Ado/BatcherFixture.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ protected override bool AppliesTo(Engine.ISessionFactoryImplementor factory)
4444
#if NET6_0_OR_GREATER
4545
if (_useDbBatch)
4646
{
47-
return factory.Settings.BatcherFactory is DbBatchBatcherFactory;
47+
return factory.Settings.BatcherFactory is DbBatchBatcherFactory && factory.Settings.ConnectionProvider.Driver is Driver.DriverBase driverBase && driverBase.CanCreateBatch;
4848
}
4949
#endif
5050
return !(factory.Settings.BatcherFactory is NonBatchingBatcherFactory);

0 commit comments

Comments
 (0)