Just analysed the issue here.
Assertion failures here because of max threads in HttpServer ThreadPool count.
Test is expecting maxThreads count to be 10. But Confuguration was not set to 10. Default it is taking as -1.
If configuration is -1, then QueuedThreadPool will take default value as 254.
int maxThreads = conf.getInt(HTTP_MAX_THREADS, -1);
QueuedThreadPool threadPool = maxThreads == -1 ?
new QueuedThreadPool() : new QueuedThreadPool(maxThreads);
small note: I think real count is 250, but above comment says 254.
Because of the above reason, the assertions are failing.
I will set the configuration explicitly and post the patch.
Thanks Nicholas for filing the Jira. Good observation