Skip to content

Commit

Permalink
OAK-2312: NodeStoreTest.moveToDescendant fails on MemoryNodeStore
Browse files Browse the repository at this point in the history
Update test expectation

git-svn-id: https://svn.apache.org/repos/asf/jackrabbit/oak/trunk@1642696 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
mduerig committed Dec 1, 2014
1 parent f89f517 commit e6dac58
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ public static Collection<Object[]> fixtures() {
{NodeStoreFixture.MONGO_MK},
{NodeStoreFixture.MONGO_NS},
{NodeStoreFixture.SEGMENT_MK},
{NodeStoreFixture.MEMORY_NS},
};
return Arrays.asList(fixtures);
}
Expand Down Expand Up @@ -415,7 +416,7 @@ public void moveToSelfNonExisting() throws CommitFailedException {
public void moveToDescendant() throws CommitFailedException {
NodeBuilder test = store.getRoot().builder().getChildNode("test");
NodeBuilder x = test.getChildNode("x");
if (fixture == NodeStoreFixture.SEGMENT_MK) {
if (fixture == NodeStoreFixture.SEGMENT_MK || fixture == NodeStoreFixture.MEMORY_NS) {
assertTrue(x.moveTo(x, "xx"));
assertFalse(x.exists());
assertFalse(test.hasChildNode("x"));
Expand Down

0 comments on commit e6dac58

Please sign in to comment.