yifan-c commented on code in PR #188:
URL: https://github.com/apache/cassandra-sidecar/pull/188#discussion_r1945574976
##########
server/src/test/integration/org/apache/cassandra/sidecar/common/DelegateIntegrationTest.java:
##########
@@ -66,6 +69,20 @@
@ExtendWith(VertxExtension.class)
class DelegateIntegrationTest extends IntegrationTestBase
{
+ private final AtomicReference<Message<JsonObject>>
allCassandraCqlReadyMessage = new AtomicReference<>();
+
+ @BeforeEach
+ void reset()
+ {
+ allCassandraCqlReadyMessage.set(null);
+ }
+
+ @Override
+ protected void beforeServerStart()
+ {
+ vertx.eventBus().localConsumer(ON_ALL_CASSANDRA_CQL_READY.address(),
allCassandraCqlReadyMessage::set);
Review Comment:
Register the event consumer at the earliest to avoid missing events
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]