LENS-865 : Fix test failures

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

Branch: refs/heads/LENS-581
Commit: b66592ce9b685c5a9f8c7b0b855032fc53d2bab4
Parents: f41c176
Author: Rajat Khandelwal <[email protected]>
Authored: Tue Nov 24 16:57:52 2015 +0530
Committer: Amareshwari Sriramadasu <[email protected]>
Committed: Tue Nov 24 16:57:52 2015 +0530

----------------------------------------------------------------------
 .../lens/cube/metadata/TestCubeMetastoreClient.java       | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lens/blob/b66592ce/lens-cube/src/test/java/org/apache/lens/cube/metadata/TestCubeMetastoreClient.java
----------------------------------------------------------------------
diff --git 
a/lens-cube/src/test/java/org/apache/lens/cube/metadata/TestCubeMetastoreClient.java
 
b/lens-cube/src/test/java/org/apache/lens/cube/metadata/TestCubeMetastoreClient.java
index 6b6f645..d938ff7 100644
--- 
a/lens-cube/src/test/java/org/apache/lens/cube/metadata/TestCubeMetastoreClient.java
+++ 
b/lens-cube/src/test/java/org/apache/lens/cube/metadata/TestCubeMetastoreClient.java
@@ -2047,9 +2047,9 @@ public class TestCubeMetastoreClient {
     
assertEquals(parts.get(0).getParameters().get(MetastoreUtil.getLatestPartTimestampKey("dt")),
       HOURLY.format().format(nowPlus1));
 
-    client.dropPartition(cubeDim.getName(), c1, timeParts, null, HOURLY);
-    Assert.assertTrue(client.dimPartitionExists(cubeDim.getName(), c1, 
timeParts2));
-    Assert.assertFalse(client.dimPartitionExists(cubeDim.getName(), c1, 
timeParts));
+    client.dropPartition(cubeDim.getName(), c1, timeParts2, null, HOURLY);
+    Assert.assertTrue(client.dimPartitionExists(cubeDim.getName(), c1, 
timeParts));
+    Assert.assertFalse(client.dimPartitionExists(cubeDim.getName(), c1, 
timeParts2));
     Assert
       .assertTrue(client.latestPartitionExists(cubeDim.getName(), c1, 
TestCubeMetastoreClient.getDatePartitionKey()));
     Assert.assertTrue(client.dimTableLatestPartitionExists(storageTableName));
@@ -2057,10 +2057,10 @@ public class TestCubeMetastoreClient {
     assertEquals(1, parts.size());
     assertEquals(TextInputFormat.class.getCanonicalName(), 
parts.get(0).getInputFormatClass().getCanonicalName());
     
assertEquals(parts.get(0).getParameters().get(MetastoreUtil.getLatestPartTimestampKey("dt")),
-      HOURLY.format().format(nowPlus1));
+      HOURLY.format().format(now));
     assertEquals(client.getAllParts(storageTableName).size(), 2);
 
-    client.dropPartition(cubeDim.getName(), c1, timeParts2, null, HOURLY);
+    client.dropPartition(cubeDim.getName(), c1, timeParts, null, HOURLY);
     Assert.assertFalse(client.dimPartitionExists(cubeDim.getName(), c1, 
timeParts2));
     Assert.assertFalse(client.dimPartitionExists(cubeDim.getName(), c1, 
timeParts));
     Assert.assertFalse(client.latestPartitionExists(cubeDim.getName(), c1,

Reply via email to