X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=models-interactions%2Fmodel-simulators%2Fsrc%2Ftest%2Fjava%2Forg%2Fonap%2Fpolicy%2Fsimulators%2FDmaapSimulatorTest.java;h=fab041f8b40db5f01e3583b865a4183a05ffa3a3;hb=refs%2Fchanges%2F24%2F126324%2F6;hp=50e9bad5bea3681bdcfd7628ccdefddded07cd2f;hpb=c122a8dd920b2d00699b239f8de3483479471efd;p=policy%2Fmodels.git diff --git a/models-interactions/model-simulators/src/test/java/org/onap/policy/simulators/DmaapSimulatorTest.java b/models-interactions/model-simulators/src/test/java/org/onap/policy/simulators/DmaapSimulatorTest.java index 50e9bad5b..fab041f8b 100644 --- a/models-interactions/model-simulators/src/test/java/org/onap/policy/simulators/DmaapSimulatorTest.java +++ b/models-interactions/model-simulators/src/test/java/org/onap/policy/simulators/DmaapSimulatorTest.java @@ -1,6 +1,6 @@ /*- * ============LICENSE_START======================================================= - * Copyright (C) 2019 AT&T Intellectual Property. All rights reserved. + * Copyright (C) 2019, 2022 AT&T Intellectual Property. All rights reserved. * ================================================================================ * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -38,7 +38,7 @@ import org.onap.policy.common.endpoints.parameters.TopicParameterGroup; import org.onap.policy.common.utils.coder.StandardCoder; public class DmaapSimulatorTest { - private static final int MAX_WAIT_SEC = 2; + private static final int MAX_WAIT_SEC = 5; private static final String TOPIC = "MY-TOPIC"; /** @@ -86,9 +86,9 @@ public class DmaapSimulatorTest { DmaapTopicSink sink = TopicEndpointManager.getManager().getDmaapTopicSink(TOPIC); sink.send("hello"); - sink.send("world"); - assertEquals("hello", queue.poll(MAX_WAIT_SEC, TimeUnit.SECONDS)); + + sink.send("world"); assertEquals("world", queue.poll(MAX_WAIT_SEC, TimeUnit.SECONDS)); } }