Skip to content

Commit

Permalink
Various test fixes:
Browse files Browse the repository at this point in the history
Hql/Ast/HqlFixture.UnaryMinusBeforeParenthesesHandledCorrectly():
    Don't depend on temp tables.
Stateless/StatelessSessionFixture.cs:
    Allow for dialects that don't have fractional seconds in timestamp versions.
sqlServerCe/NHibernate.Test.last-results.xml:
    Allow UnaryMinusBeforeParenthesesHandledCorrectly() to fail (rest of the suite
    does) due to lack of Date support in dialect. Already fixed on master.
  • Loading branch information
oskarb committed Aug 4, 2014
1 parent b8854d7 commit cf6b7ce
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
5 changes: 5 additions & 0 deletions lib/teamcity/sqlServerCe/NHibernate.Test.last-results.xml
Expand Up @@ -4305,6 +4305,11 @@ Parameter name: typecode]]></message>
<failure>
<message><![CDATA[TestFixtureSetUp failed in HqlFixture]]></message>
</failure>
</test-case>
<test-case name="NHibernate.Test.Hql.Ast.HqlFixture.UnaryMinusBeforeParenthesesHandledCorrectly" executed="True" result="Failure" success="False" asserts="0">
<failure>
<message><![CDATA[TestFixtureSetUp failed in HqlFixture]]></message>
</failure>
</test-case>
</results>
</test-suite>
Expand Down
3 changes: 0 additions & 3 deletions src/NHibernate.Test/Hql/Ast/HqlFixture.cs
Expand Up @@ -330,9 +330,6 @@ public void UnaryMinusBeforeParenthesesHandledCorrectly()
int actualWorkaround = s.CreateQuery("select -1*(1+1) from Animal as h")
.List<int>().Single();
Assert.That(actualWorkaround, Is.EqualTo(-2));

s.CreateQuery("delete from Animal").ExecuteUpdate();
txn.Commit();
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/NHibernate.Test/Stateless/StatelessSessionFixture.cs
Expand Up @@ -48,7 +48,7 @@ public void CreateUpdateReadDelete()
Assert.IsTrue(initVersion.HasValue);
tx.Commit();
}
Thread.Sleep(100); // Only to be secure that next modification have a different version
Thread.Sleep(1100); // Ensure version increment (some dialects lack fractional seconds).
using (tx = ss.BeginTransaction())
{
doc.Text = "blah blah blah .... blah";
Expand Down

0 comments on commit cf6b7ce

Please sign in to comment.