Skip to content

Commit 10c9dfb

Browse files
Generate async files
1 parent 8f4b35c commit 10c9dfb

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

src/NHibernate.Test/Async/Tools/hbm2ddl/SchemaMetadataUpdaterTest/SchemaMetadataUpdaterFixture.cs

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -102,11 +102,8 @@ public async Task EnsureReservedWordsHardCodedInDialectAsync()
102102

103103
var sf = (ISessionFactoryImplementor)configuration.BuildSessionFactory();
104104

105-
// use the dialect as configured, with no update
106-
var match = reservedDb.Intersect(sf.Dialect.Keywords).ToList();
107-
108105
// tests that nothing in metaData.GetReservedWords() is left out of the Dialect.Keywords (without a refresh).
109-
var differences = reservedDb.Except(match).ToList();
106+
var differences = reservedDb.Except(sf.Dialect.Keywords).ToList();
110107
if (differences.Count > 0)
111108
{
112109
Console.WriteLine("Update Dialect {0} with RegisterKeyword:", sf.Dialect.GetType().Name);
@@ -116,12 +113,7 @@ public async Task EnsureReservedWordsHardCodedInDialectAsync()
116113
}
117114
}
118115

119-
if (sf.ConnectionProvider.Driver is OdbcDriver)
120-
{
121-
Assert.Inconclusive("ODBC has excess keywords reserved");
122-
}
123-
124-
Assert.That(match, Is.EquivalentTo(reservedDb));
116+
Assert.That(sf.Dialect.Keywords, Is.IsSupersetOf(reservedDb));
125117
}
126118

127119
[Test, Explicit]

0 commit comments

Comments
 (0)