MockAsyncContext not found. Did request wrapper not delegate startAsync? [SPR-17353] #21887
Labels
in: test
Issues in the test module
in: web
Issues in web modules (web, webmvc, webflux, websocket)
status: backported
An issue that has been backported to maintenance branches
type: regression
A bug that is also a regression
Milestone
Réda Housni Alaoui opened SPR-17353 and commented
I am using Spring Security 3.2.4.
I am migrating from Spring framework 5.0.1 to 5.1.0.
My old test:
Fails with:
Maybe TestDispatcherServlet is more restrictive?
Anyway my application is not meant to support async.
But MockHttpServletRequestBuilder creates async supported requests every time:
Without setting an async context.
Affects: 5.1 GA
Issue Links:
Referenced from: commits 29ff8a8, fc2f3ec, f61f6f2
Backported to: 5.0.10, 4.3.20
The text was updated successfully, but these errors were encountered: