Skip to content

Commit f34ca2f

Browse files
author
Vladimir Kotal
committed
restore the property
1 parent 0ff66b1 commit f34ca2f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/org/opensolaris/opengrok/history/RepositoryFactoryTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,10 @@ public void testNotWorkingRepository() throws InstantiationException, IllegalAcc
6161
NoSuchMethodException, InvocationTargetException {
6262

6363
String propName = MercurialRepository.CMD_PROPERTY_KEY;
64-
System.setProperty(propName, "/foo/bar/nonexistent");
64+
String origPropValue = System.setProperty(propName, "/foo/bar/nonexistent");
6565
File root = new File(repository.getSourceRoot(), "mercurial");
6666
Repository repo = RepositoryFactory.getRepository(root);
67+
System.setProperty(propName, origPropValue);
6768
assertFalse(repo.isWorking());
6869
}
6970
}

0 commit comments

Comments
 (0)