@@ -117,6 +117,7 @@ void testTransactionalPublishContentLength() throws Exception {
117
117
start = stompSubscriber .counter .get ();
118
118
}
119
119
}
120
+ Assertions .assertEquals (10 , stompSubscriber .counter .get ());
120
121
121
122
stompConnection .begin ("tx2" );
122
123
for (int x = 0 ; x < 100 ; x ++) {
@@ -160,7 +161,7 @@ public StompSubscriber(String topicName, String hostname, int port, String usern
160
161
stompConnection .open (hostname , port );
161
162
stompConnection .connect (username , getPassword (username ), "client-subscribe" );
162
163
headers = new HashMap <>();
163
- headers .put ("id" , "client-subscribe/" + topicName );
164
+ headers .put ("id" , topicName );
164
165
stompConnection .subscribe (topicName , "client-individual" , headers );
165
166
Thread t = new Thread (this );
166
167
t .start ();
@@ -180,12 +181,13 @@ public void run() {
180
181
while (!end .get ()) {
181
182
try {
182
183
try {
183
- StompFrame stompFrame = stompConnection .receive (100 );
184
+ StompFrame stompFrame = stompConnection .receive (1000 );
184
185
if (stompFrame .isMessage ()) {
185
186
stompConnection .ack (stompFrame );
186
187
}
187
188
counter .incrementAndGet ();
188
189
} catch (SocketTimeoutException e ) {
190
+ System .err .println ("SocketTimeoutException" );
189
191
// ignore
190
192
}
191
193
} catch (Exception e ) {
0 commit comments