File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed
test/src/com/rabbitmq/client/test/functional Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -117,13 +117,13 @@ public void testQueueRedeclareSemanticNonEquivalence() throws Exception {
117
117
* Test messages expire when using basic get.
118
118
*/
119
119
public void testPublishAndGetWithExpiry () throws Exception {
120
- declareAndBindQueue (2000 );
120
+ declareAndBindQueue (200 );
121
121
122
122
publish (MSG [0 ]);
123
- Thread .sleep (1500 );
123
+ Thread .sleep (150 );
124
124
125
125
publish (MSG [1 ]);
126
- Thread .sleep (1000 );
126
+ Thread .sleep (100 );
127
127
128
128
publish (MSG [2 ]);
129
129
@@ -136,19 +136,19 @@ public void testPublishAndGetWithExpiry() throws Exception {
136
136
* Test get expiry for messages sent under a transaction
137
137
*/
138
138
public void testTransactionalPublishWithGet () throws Exception {
139
- declareAndBindQueue (1000 );
139
+ declareAndBindQueue (100 );
140
140
141
141
this .channel .txSelect ();
142
142
143
143
publish (MSG [0 ]);
144
- Thread .sleep (1500 );
144
+ Thread .sleep (150 );
145
145
146
146
publish (MSG [1 ]);
147
147
this .channel .txCommit ();
148
- Thread .sleep (500 );
148
+ Thread .sleep (50 );
149
149
150
150
assertEquals (MSG [0 ], new String (get ()));
151
- Thread .sleep (800 );
151
+ Thread .sleep (80 );
152
152
153
153
assertNull (get ());
154
154
}
@@ -157,10 +157,10 @@ public void testTransactionalPublishWithGet() throws Exception {
157
157
* Test expiry of requeued messages
158
158
*/
159
159
public void testExpiryWithRequeue () throws Exception {
160
- declareAndBindQueue (1000 );
160
+ declareAndBindQueue (100 );
161
161
162
162
publish (MSG [0 ]);
163
- Thread .sleep (500 );
163
+ Thread .sleep (50 );
164
164
publish (MSG [1 ]);
165
165
publish (MSG [2 ]);
166
166
@@ -170,7 +170,7 @@ public void testExpiryWithRequeue() throws Exception {
170
170
closeChannel ();
171
171
openChannel ();
172
172
173
- Thread .sleep (600 );
173
+ Thread .sleep (60 );
174
174
expectBodyAndRemainingMessages (MSG [1 ], 1 );
175
175
expectBodyAndRemainingMessages (MSG [2 ], 0 );
176
176
}
You can’t perform that action at this time.
0 commit comments