Skip to content

Commit e81c8ae

Browse files
Disable another unsupported test
1 parent cb0eba1 commit e81c8ae

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/NHibernate.Test/Async/SqlTest/Query/SelfReferencingCollectionLoadTest.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ protected override string MappingsAssembly
3030

3131
protected override bool AppliesTo(Dialect.Dialect dialect)
3232
{
33-
// Hacky mapping causing the primary key to reference itself as a foreign key, which is not supported by MySQL. It
34-
// fails when trying to insert data by considering the foreign key violated.
35-
return !(Dialect is MySQLDialect);
33+
// Hacky mapping causing the primary key to reference itself as a foreign key, which is not supported by
34+
// some databases. It fails when trying to insert data by considering the foreign key violated.
35+
return !(Dialect is MySQLDialect || Dialect is SapSQLAnywhere17Dialect);
3636
}
3737

3838
[Test]
@@ -64,4 +64,4 @@ public async Task LoadCollectionAsync()
6464
}
6565
}
6666
}
67-
}
67+
}

src/NHibernate.Test/SqlTest/Query/SelfReferencingCollectionLoadTest.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ protected override string MappingsAssembly
1919

2020
protected override bool AppliesTo(Dialect.Dialect dialect)
2121
{
22-
// Hacky mapping causing the primary key to reference itself as a foreign key, which is not supported by MySQL. It
23-
// fails when trying to insert data by considering the foreign key violated.
24-
return !(Dialect is MySQLDialect);
22+
// Hacky mapping causing the primary key to reference itself as a foreign key, which is not supported by
23+
// some databases. It fails when trying to insert data by considering the foreign key violated.
24+
return !(Dialect is MySQLDialect || Dialect is SapSQLAnywhere17Dialect);
2525
}
2626

2727
[Test]
@@ -53,4 +53,4 @@ public void LoadCollection()
5353
}
5454
}
5555
}
56-
}
56+
}

0 commit comments

Comments
 (0)