falcon-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pall...@apache.org
Subject falcon git commit: FALCON-1831 [TEST] Flaky WorkflowExecutionContextTest.testWorkflowStartEnd
Date Tue, 16 Feb 2016 04:35:55 GMT
Repository: falcon
Updated Branches:
  refs/heads/master 9b4acf640 -> 44fcfc5b0


FALCON-1831 [TEST] Flaky WorkflowExecutionContextTest.testWorkflowStartEnd

Author: Pallavi Rao <pallavi.rao@inmobi.com>

Reviewers: Sandeep Samudrala <sandeep.samudrala@inmobi.com>, Pavan Kolamuri <pavan.kolamuri@inmobi.com>

Closes #42 from pallavi-rao/1831


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

Branch: refs/heads/master
Commit: 44fcfc5b01a06222f6053d70cc962ea583787993
Parents: 9b4acf6
Author: Pallavi Rao <pallavi.rao@inmobi.com>
Authored: Tue Feb 16 10:05:47 2016 +0530
Committer: Pallavi Rao <pallavi.rao@inmobi.com>
Committed: Tue Feb 16 10:05:47 2016 +0530

----------------------------------------------------------------------
 .../apache/falcon/workflow/WorkflowExecutionContextTest.java    | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/falcon/blob/44fcfc5b/common/src/test/java/org/apache/falcon/workflow/WorkflowExecutionContextTest.java
----------------------------------------------------------------------
diff --git a/common/src/test/java/org/apache/falcon/workflow/WorkflowExecutionContextTest.java
b/common/src/test/java/org/apache/falcon/workflow/WorkflowExecutionContextTest.java
index 4fdc1e9..c0bc252 100644
--- a/common/src/test/java/org/apache/falcon/workflow/WorkflowExecutionContextTest.java
+++ b/common/src/test/java/org/apache/falcon/workflow/WorkflowExecutionContextTest.java
@@ -300,6 +300,7 @@ public class WorkflowExecutionContextTest {
     }
 
     private static String[] getTestMessageArgs() {
+        long now = new Date().getTime();
         return new String[]{
             "-" + WorkflowExecutionArgs.CLUSTER_NAME.getName(), CLUSTER_NAME,
             "-" + WorkflowExecutionArgs.ENTITY_TYPE.getName(), "process",
@@ -333,8 +334,8 @@ public class WorkflowExecutionContextTest {
 
             "-" + WorkflowExecutionArgs.LOG_DIR.getName(), LOGS_DIR,
             "-" + WorkflowExecutionArgs.LOG_FILE.getName(), LOGS_DIR + "/log.txt",
-            "-" + WorkflowExecutionArgs.WF_START_TIME.getName(), Long.toString(new Date().getTime()),
-            "-" + WorkflowExecutionArgs.WF_END_TIME.getName(), Long.toString(new Date().getTime()
+ 1000000),
+            "-" + WorkflowExecutionArgs.WF_START_TIME.getName(), Long.toString(now),
+            "-" + WorkflowExecutionArgs.WF_END_TIME.getName(), Long.toString(now + 1000000),
         };
     }
 }


Mime
View raw message