Skip to content

Commit d19d882

Browse files
committed
Ignore StringTypeWithLengthFixture.DbThrowsOnTooLong() on SQLite.
SQLite doesn't enforce specified string lengths.
1 parent 0e8516e commit d19d882

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/NHibernate.Test/TypesTest/StringTypeWithLengthFixture.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,12 @@ public void NhThrowsOnTooLong()
6666
[Test]
6767
public void DbThrowsOnTooLong()
6868
{
69+
// Note: This test could possible be written as
70+
// "database must raise an error OR it must store and return the full value"
71+
// to avoid this dialect specific exception.
72+
if (Dialect is SQLiteDialect)
73+
Assert.Ignore("SQLite does not enforce specified string lengths.");
74+
6975
Assert.Throws<GenericADOException>(
7076
() =>
7177
{

0 commit comments

Comments
 (0)