You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by cs...@apache.org on 2024/09/04 19:35:31 UTC

(activemq) branch main updated: AMQ-8398 - Fix Stomp to Stomp Unicode UTF-8 test

This is an automated email from the ASF dual-hosted git repository.

cshannon pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/activemq.git


The following commit(s) were added to refs/heads/main by this push:
     new f5fb6c91b2 AMQ-8398 - Fix Stomp to Stomp Unicode UTF-8 test
f5fb6c91b2 is described below

commit f5fb6c91b2f302459ab13b247630d4869ed8ce75
Author: Christopher L. Shannon <cs...@apache.org>
AuthorDate: Wed Sep 4 15:33:55 2024 -0400

    AMQ-8398 - Fix Stomp to Stomp Unicode UTF-8 test
    
    The connection receive was out of order and causing failures in some of
    the Stomp tests like StompNIOSSL
---
 .../src/test/java/org/apache/activemq/transport/stomp/StompTest.java  | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/activemq-stomp/src/test/java/org/apache/activemq/transport/stomp/StompTest.java b/activemq-stomp/src/test/java/org/apache/activemq/transport/stomp/StompTest.java
index 9e3b340325..9c82261e32 100644
--- a/activemq-stomp/src/test/java/org/apache/activemq/transport/stomp/StompTest.java
+++ b/activemq-stomp/src/test/java/org/apache/activemq/transport/stomp/StompTest.java
@@ -281,13 +281,13 @@ public class StompTest extends StompTestSupport {
 
         String frame = "CONNECT\n" + "login:system\n" + "passcode:manager\n\n" + Stomp.NULL;
         stompConnection.sendFrame(frame);
+        frame = stompConnection.receiveFrame();
+        assertTrue(frame.startsWith("CONNECTED"));
 
         // publish message with string that requires 4-byte UTF-8 encoding
         frame = "SEND\n" + "destination:/queue/" + getQueueName() + "\n\n" + body + Stomp.NULL;
         stompConnection.sendFrame(frame);
 
-        frame = stompConnection.receiveFrame();
-        assertTrue(frame.startsWith("CONNECTED"));
         frame = "SUBSCRIBE\n" + "destination:/queue/" + getQueueName() + "\n" + "ack:auto\n\n" + Stomp.NULL;
         stompConnection.sendFrame(frame);
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@activemq.apache.org
For additional commands, e-mail: commits-help@activemq.apache.org
For further information, visit: https://activemq.apache.org/contact