Skip to content

Commit 9cf5946

Browse files
Generate async files
1 parent 8d85192 commit 9cf5946

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/NHibernate.Test/Async/ReadOnly/ReadOnlyVersionedNodes.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,7 @@ public async Task MergeDetachedChildWithNewParentCommitWithReadOnlyChildAsync()
571571
Assert.That(child.Version, Is.EqualTo(1));
572572
Assert.That(parent, Is.Not.Null);
573573
Assert.That(parent.Children.Count, Is.EqualTo(0));
574-
Assert.That(parent.Version, Is.EqualTo(1));
574+
Assert.That(parent.Version, Is.EqualTo(2));
575575
s.SetReadOnly(parent, true);
576576
s.SetReadOnly(child, true);
577577
await (s.DeleteAsync(parent));
@@ -622,8 +622,7 @@ public async Task GetChildMakeReadOnlyThenMergeDetachedChildWithNewParentAsync()
622622
Assert.That(child.Version, Is.EqualTo(1));
623623
Assert.That(parent, Is.Not.Null);
624624
Assert.That(parent.Children.Count, Is.EqualTo(0));
625-
Assert.That(parent.Version, Is.EqualTo(1));
626-
// NH-specific: Hibernate incorrectly increments version number, NH does not
625+
Assert.That(parent.Version, Is.EqualTo(2));
627626
s.SetReadOnly(parent, true);
628627
s.SetReadOnly(child, true);
629628
await (s.DeleteAsync(parent));

0 commit comments

Comments
 (0)