You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@knox.apache.org by su...@apache.org on 2015/05/08 18:38:36 UTC

knox git commit: Fix unit test to run on windows

Repository: knox
Updated Branches:
  refs/heads/master 0dc3b376a -> bd26abb21


Fix unit test to run on windows


Project: http://git-wip-us.apache.org/repos/asf/knox/repo
Commit: http://git-wip-us.apache.org/repos/asf/knox/commit/bd26abb2
Tree: http://git-wip-us.apache.org/repos/asf/knox/tree/bd26abb2
Diff: http://git-wip-us.apache.org/repos/asf/knox/diff/bd26abb2

Branch: refs/heads/master
Commit: bd26abb2191a5d9a7bd7fd8e22c6e9b65edf5e6f
Parents: 0dc3b37
Author: Sumit Gupta <su...@apache.org>
Authored: Fri May 8 12:37:55 2015 -0400
Committer: Sumit Gupta <su...@apache.org>
Committed: Fri May 8 12:37:55 2015 -0400

----------------------------------------------------------------------
 .../java/org/apache/hadoop/gateway/GatewayGlobalConfigTest.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/knox/blob/bd26abb2/gateway-server/src/test/java/org/apache/hadoop/gateway/GatewayGlobalConfigTest.java
----------------------------------------------------------------------
diff --git a/gateway-server/src/test/java/org/apache/hadoop/gateway/GatewayGlobalConfigTest.java b/gateway-server/src/test/java/org/apache/hadoop/gateway/GatewayGlobalConfigTest.java
index 0e38405..2ba0f7a 100644
--- a/gateway-server/src/test/java/org/apache/hadoop/gateway/GatewayGlobalConfigTest.java
+++ b/gateway-server/src/test/java/org/apache/hadoop/gateway/GatewayGlobalConfigTest.java
@@ -172,7 +172,7 @@ public class GatewayGlobalConfigTest {
   public void testStacksServicesDir() {
     System.clearProperty(GatewayConfigImpl.GATEWAY_HOME_VAR);
     GatewayConfig config = new GatewayConfigImpl();
-    assertThat(config.getGatewayServicesDir(), Matchers.endsWith("data/services"));
+    assertThat(config.getGatewayServicesDir(), Matchers.endsWith("data" + File.separator + "services"));
     String homeDirName = getHomeDirName("conf-demo/conf/gateway-site.xml");
     System.setProperty(GatewayConfigImpl.GATEWAY_HOME_VAR, homeDirName);
     config = new GatewayConfigImpl();