falcon-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ajayyad...@apache.org
Subject [7/7] falcon git commit: FALCON-1392 FalconUnit tests fail. Contributed by Pavan Kumar Kolamuri.
Date Thu, 20 Aug 2015 14:21:59 GMT
FALCON-1392 FalconUnit tests fail. Contributed by Pavan Kumar Kolamuri.


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

Branch: refs/heads/0.7
Commit: 862137b92b2b8d46d5a6cf480d275f26b4e11b4f
Parents: 81380f8
Author: Ajay Yadava <ajaynsit@gmail.com>
Authored: Tue Aug 18 15:51:51 2015 +0530
Committer: Ajay Yadava <ajaynsit@gmail.com>
Committed: Thu Aug 20 19:49:01 2015 +0530

----------------------------------------------------------------------
 CHANGES.txt                                                       | 2 ++
 unit/src/test/java/org/apache/falcon/unit/FalconUnitTestBase.java | 2 +-
 unit/src/test/java/org/apache/falcon/unit/TestFalconUnit.java     | 2 +-
 3 files changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/falcon/blob/862137b9/CHANGES.txt
----------------------------------------------------------------------
diff --git a/CHANGES.txt b/CHANGES.txt
index 23d7cf0..be33ca7 100755
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -89,6 +89,8 @@ Trunk (Unreleased)
     (Suhas Vasu)
 
   BUG FIXES
+    FALCON-1392 FalconUnit tests fail(Pavan Kumar Kolamuri via Ajay Yadava)
+  
     FALCON-1344 EntityGraph returns null in list of dependent entities(Ajay Yadava)
     
     FALCON-1330 When multiple cluster definitions exist for the same colo, triage produces
unexpected results(Ajay Yadava)

http://git-wip-us.apache.org/repos/asf/falcon/blob/862137b9/unit/src/test/java/org/apache/falcon/unit/FalconUnitTestBase.java
----------------------------------------------------------------------
diff --git a/unit/src/test/java/org/apache/falcon/unit/FalconUnitTestBase.java b/unit/src/test/java/org/apache/falcon/unit/FalconUnitTestBase.java
index bd03efb..9f00d94 100644
--- a/unit/src/test/java/org/apache/falcon/unit/FalconUnitTestBase.java
+++ b/unit/src/test/java/org/apache/falcon/unit/FalconUnitTestBase.java
@@ -301,7 +301,7 @@ public class FalconUnitTestBase {
     }
 
     protected long waitForStatus(final EntityType entityType, final String entityName, final
String instanceTime) {
-        return waitFor(20000, new Predicate() {
+        return waitFor(90000, new Predicate() {
             public boolean evaluate() throws Exception {
                 InstancesResult.WorkflowStatus status = falconUnitClient.getInstanceStatus(entityType,
                         entityName, instanceTime);

http://git-wip-us.apache.org/repos/asf/falcon/blob/862137b9/unit/src/test/java/org/apache/falcon/unit/TestFalconUnit.java
----------------------------------------------------------------------
diff --git a/unit/src/test/java/org/apache/falcon/unit/TestFalconUnit.java b/unit/src/test/java/org/apache/falcon/unit/TestFalconUnit.java
index 855be79..57b7b1b 100644
--- a/unit/src/test/java/org/apache/falcon/unit/TestFalconUnit.java
+++ b/unit/src/test/java/org/apache/falcon/unit/TestFalconUnit.java
@@ -49,7 +49,7 @@ public class TestFalconUnit extends FalconUnitTestBase {
         waitForStatus(EntityType.PROCESS, "process", scheduleTime);
         InstancesResult.WorkflowStatus status = falconUnitClient.getInstanceStatus(EntityType.PROCESS,
                 "process", scheduleTime);
-        Assert.assertEquals(InstancesResult.WorkflowStatus.SUCCEEDED, status);
+        Assert.assertEquals(status, InstancesResult.WorkflowStatus.SUCCEEDED);
         String outPath = getFeedPathForTS("local", "out", scheduleTime);
         Assert.assertTrue(getFileSystem().exists(new Path(outPath)));
         FileStatus[] files = getFileSystem().listStatus(new Path(outPath));


Mime
View raw message