You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@atlas.apache.org by am...@apache.org on 2017/09/02 00:27:53 UTC

atlas git commit: ATLAS-2047: Update to fix IT failure in build environment.

Repository: atlas
Updated Branches:
  refs/heads/master b837c0ee3 -> 9d38c6a94


ATLAS-2047: Update to fix IT failure in build environment.


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

Branch: refs/heads/master
Commit: 9d38c6a94f1962a55efb8e047428c2be1e61ad25
Parents: b837c0e
Author: ashutoshm <am...@hortonworks.com>
Authored: Fri Sep 1 17:27:31 2017 -0700
Committer: ashutoshm <am...@hortonworks.com>
Committed: Fri Sep 1 17:27:31 2017 -0700

----------------------------------------------------------------------
 .../atlas/notification/NotificationHookConsumerTest.java     | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/atlas/blob/9d38c6a9/webapp/src/test/java/org/apache/atlas/notification/NotificationHookConsumerTest.java
----------------------------------------------------------------------
diff --git a/webapp/src/test/java/org/apache/atlas/notification/NotificationHookConsumerTest.java b/webapp/src/test/java/org/apache/atlas/notification/NotificationHookConsumerTest.java
index 2b4aa4f..b325404 100644
--- a/webapp/src/test/java/org/apache/atlas/notification/NotificationHookConsumerTest.java
+++ b/webapp/src/test/java/org/apache/atlas/notification/NotificationHookConsumerTest.java
@@ -47,8 +47,8 @@ import java.util.List;
 import java.util.concurrent.ExecutorService;
 
 import static org.mockito.Mockito.*;
-import static org.testng.AssertJUnit.assertFalse;
-import static org.testng.AssertJUnit.assertTrue;
+import static org.testng.Assert.assertFalse;
+import static org.testng.Assert.assertTrue;
 
 public class NotificationHookConsumerTest {
     @Mock
@@ -279,13 +279,13 @@ public class NotificationHookConsumerTest {
             @Override
             public Object answer(InvocationOnMock invocationOnMock) throws Throwable {
                 notificationHookConsumer.consumers.get(0).start();
-                Thread.sleep(1000);
+                Thread.sleep(500);
                 return null;
             }
         }).when(executorService).submit(any(NotificationHookConsumer.HookConsumer.class));
 
         notificationHookConsumer.startInternal(configuration, executorService);
-        Thread.sleep(1000);
+        Thread.sleep(500);
         notificationHookConsumer.consumers.get(0).shutdown();
         assertFalse(notificationHookConsumer.consumers.get(0).isAlive());
     }