You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kylin.apache.org by sh...@apache.org on 2015/10/14 05:29:23 UTC

incubator-kylin git commit: Minor, fix failed test case

Repository: incubator-kylin
Updated Branches:
  refs/heads/1.x-staging fe0ceeb82 -> dca815799


Minor, fix failed test case

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

Branch: refs/heads/1.x-staging
Commit: dca815799262c1ee061fa05472a880550e2746be
Parents: fe0ceeb
Author: shaofengshi <sh...@apache.org>
Authored: Wed Oct 14 11:27:37 2015 +0800
Committer: shaofengshi <sh...@apache.org>
Committed: Wed Oct 14 11:29:11 2015 +0800

----------------------------------------------------------------------
 .../java/org/apache/kylin/rest/controller/CubeControllerTest.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-kylin/blob/dca81579/server/src/test/java/org/apache/kylin/rest/controller/CubeControllerTest.java
----------------------------------------------------------------------
diff --git a/server/src/test/java/org/apache/kylin/rest/controller/CubeControllerTest.java b/server/src/test/java/org/apache/kylin/rest/controller/CubeControllerTest.java
index 2f12851..7a07d66 100644
--- a/server/src/test/java/org/apache/kylin/rest/controller/CubeControllerTest.java
+++ b/server/src/test/java/org/apache/kylin/rest/controller/CubeControllerTest.java
@@ -201,12 +201,13 @@ public class CubeControllerTest extends ServiceTestBase {
             rowkeyColumns[i] = rowkeyColumns[j];
             rowkeyColumns[j] = tmp;
         }
+        req = new CubeRequest();
         req.setCubeDescData(JsonUtil.writeValueAsIndentString(newCubeDesc));
+        req.setModelDescData(JsonUtil.writeValueAsIndentString(newCubeDesc.getModel()));
         res = cubeController.updateCubeDesc(req);
         Assert.assertTrue(res.getSuccessful());
 
         resultDesc = getCubeDescByName(TEST_CUBE_NAME);
-        ;
         Assert.assertNotEquals(newCubeDesc.getSignature(), resultDesc.getSignature());
         Assert.assertEquals(newCubeDesc.calculateSignature(), resultDesc.getSignature());
     }