aboutsummaryrefslogtreecommitdiffstats
path: root/models-sim/models-sim-dmaap/src/test
diff options
context:
space:
mode:
authorJim Hahn <jrh3@att.com>2019-12-11 11:32:01 -0500
committerJim Hahn <jrh3@att.com>2019-12-11 11:42:59 -0500
commite279f0ec53147f53d7a48041c7b433b7738ae37d (patch)
treec0356cfe3d753d2cc7ad4580c385a012df1386cb /models-sim/models-sim-dmaap/src/test
parentf32f276bb5dddfc4d11be9f0c13227547a0110b1 (diff)
Fix timeout bug in dmaap simulator
Also added a start script that can be used to execute the simulator in stand-alone mode (i.e., outside of a docker container). Change-Id: I26550ad36cfd2448c96cf0c09fec24e60ffd815b Issue-ID: POLICY-2298 Signed-off-by: Jim Hahn <jrh3@att.com>
Diffstat (limited to 'models-sim/models-sim-dmaap/src/test')
-rw-r--r--models-sim/models-sim-dmaap/src/test/java/org/onap/policy/models/sim/dmaap/provider/DmaapSimProviderTest.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/models-sim/models-sim-dmaap/src/test/java/org/onap/policy/models/sim/dmaap/provider/DmaapSimProviderTest.java b/models-sim/models-sim-dmaap/src/test/java/org/onap/policy/models/sim/dmaap/provider/DmaapSimProviderTest.java
index f8c141614..1473e0242 100644
--- a/models-sim/models-sim-dmaap/src/test/java/org/onap/policy/models/sim/dmaap/provider/DmaapSimProviderTest.java
+++ b/models-sim/models-sim-dmaap/src/test/java/org/onap/policy/models/sim/dmaap/provider/DmaapSimProviderTest.java
@@ -192,7 +192,7 @@ public class DmaapSimProviderTest {
when(data1.read(any(), anyInt(), anyLong())).thenReturn(Collections.emptyList());
Response resp = prov.processDmaapMessageGet(TOPIC1, CONSUMER1, CONSUMER_ID1, 3, 300L);
- assertEquals(Status.REQUEST_TIMEOUT.getStatusCode(), resp.getStatus());
+ assertEquals(Status.OK.getStatusCode(), resp.getStatus());
assertEquals("[]", resp.getEntity().toString());
}