From c3b4eed073c7994d12982b246d13af7e57851803 Mon Sep 17 00:00:00 2001 From: elandau Date: Fri, 14 Aug 2015 12:31:22 -0700 Subject: [PATCH] Fix unit test --- .../java/com/netflix/governator/LifecycleManagerTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/governator-core/src/test/java/com/netflix/governator/LifecycleManagerTest.java b/governator-core/src/test/java/com/netflix/governator/LifecycleManagerTest.java index 869f30b1..f760f239 100644 --- a/governator-core/src/test/java/com/netflix/governator/LifecycleManagerTest.java +++ b/governator-core/src/test/java/com/netflix/governator/LifecycleManagerTest.java @@ -69,13 +69,13 @@ public void testWithExternalListener() throws InterruptedException { CountingLifecycleListener listener = new CountingLifecycleListener(); injector.addListener(listener); - Assert.assertEquals(0, listener.getStartedCount()); + Assert.assertEquals(1, listener.getStartedCount()); Assert.assertEquals(0, listener.getStartFailedCount()); Assert.assertEquals(0, listener.getStoppedCount()); injector.shutdown(); - Assert.assertEquals(0, listener.getStartedCount()); + Assert.assertEquals(1, listener.getStartedCount()); Assert.assertEquals(0, listener.getStartFailedCount()); Assert.assertEquals(1, listener.getStoppedCount()); }