File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
activemq-web-demo/src/test/java/org/apache/activemq/web Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -88,10 +88,10 @@ public void testConsumeAsyncTimeout() throws Exception {
88
88
89
89
// AMQ-9330 - test no 500 error on timeout and instead 204 error
90
90
Future <Result > result =
91
- asyncRequest (httpClient , "http://localhost:" + port + "/message/test?readTimeout=2000 &type=queue&clientId=test" , new StringBuffer ());
91
+ asyncRequest (httpClient , "http://localhost:" + port + "/message/test?readTimeout=1000 &type=queue&clientId=test" , new StringBuffer ());
92
92
// try a second request while the first is running, this should get a 500 error since the first is still running and
93
93
// concurrent access to the same consumer is not allowed
94
- Future <Result > errorResult = asyncRequest (httpClient , "http://localhost:" + port + "/message/test?readTimeout=1 &type=queue&clientId=test" , new StringBuffer ());
94
+ Future <Result > errorResult = asyncRequest (httpClient , "http://localhost:" + port + "/message/test?readTimeout=10000 &type=queue&clientId=test" , new StringBuffer ());
95
95
assertEquals (HttpStatus .INTERNAL_SERVER_ERROR_500 , errorResult .get ().getResponse ().getStatus ());
96
96
//After the original request finishes, verify 204 and not 500 error
97
97
assertEquals (HttpStatus .NO_CONTENT_204 , result .get ().getResponse ().getStatus ());
You can’t perform that action at this time.
0 commit comments