Fix broken junits 23/122223/1
authorJim Hahn <jrh3@att.com>
Fri, 25 Jun 2021 17:09:00 +0000 (13:09 -0400)
committerJim Hahn <jrh3@att.com>
Fri, 25 Jun 2021 17:10:04 +0000 (13:10 -0400)
Some junits are broken since adding the expiration timer.  Changed the
length of the heartbeat in an attempt to fix it.

Issue-ID: POLICY-3407
Change-Id: I81046476e243a0bf20ae9db9259be4464418e73e
Signed-off-by: Jim Hahn <jrh3@att.com>
main/src/test/java/org/onap/policy/pap/main/parameters/TestPdpParameters.java
main/src/test/resources/parameters/PapConfigParametersStd.json

index 6f398c6..19192da 100644 (file)
@@ -48,7 +48,7 @@ public class TestPdpParameters {
         assertNotNull(state);
         assertEquals(5, state.getMaxWaitMs());
 
-        assertEquals(6L, params.getHeartBeatMs());
+        assertEquals(6000L, params.getHeartBeatMs());
 
         assertEquals(20000L, params.getMaxMessageAgeMs());
 
index a11782b..211ab4e 100644 (file)
@@ -16,7 +16,7 @@
             "maxRetryCount": 1,
             "maxWaitMs": 5
         },
-        "heartBeatMs": 6,
+        "heartBeatMs": 6000,
         "maxMessageAgeMs": 20000
     },
     "databaseProviderParameters": {