changeset 984:e78734c8fa95 Indore-2017.2.x

Fix tests
author Dmitry Neverov <dmitry.neverov@gmail.com>
date Thu, 25 Jan 2018 11:24:01 +0100
parents ea7a543ecf2f
children b297473ff0d0 dd8d37d45ed2
files mercurial-tests/src/jetbrains/buildServer/buildTriggers/vcs/mercurial/MercurialVcsSupportTest.java
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial-tests/src/jetbrains/buildServer/buildTriggers/vcs/mercurial/MercurialVcsSupportTest.java	Thu Jan 25 09:07:17 2018 +0100
+++ b/mercurial-tests/src/jetbrains/buildServer/buildTriggers/vcs/mercurial/MercurialVcsSupportTest.java	Thu Jan 25 11:24:01 2018 +0100
@@ -244,6 +244,7 @@
     delete(nonExistingHg);
     String nonExistingHgPath = nonExistingHg.getAbsolutePath();
     root.addProperty(Constants.HG_COMMAND_PATH_PROP, nonExistingHgPath);
+    setInternalProperty(Constants.CUSTOM_SERVER_HG_PATH_WHITELIST, nonExistingHgPath);
     try {
       myVcs.getTestConnectionSupport().testConnection(root);
       fail("Exception expected");
@@ -262,6 +263,7 @@
     delete(nonExistingHg);
     String nonExistingHgPath = nonExistingHg.getAbsolutePath();
     root.addProperty(Constants.HG_COMMAND_PATH_PROP, nonExistingHgPath);
+    setInternalProperty(Constants.CUSTOM_SERVER_HG_PATH_WHITELIST, nonExistingHgPath);
     try {
       myVcs.getTestConnectionSupport().testConnection(root);
       fail("Exception expected");