Fix flaky test: HttpRequestDispatcherTestCase

_ There was a race condition where  acceptCalledLath.await returned true before the exception was thrown and manage.