Rocket/core/lib/tests
Jeb Rosen 560f0977d3 Revamp testing system for async.
* body_string_wait and body_bytes_wait are removed; use `.await` instead
* `dispatch()` is now an async fn and must be .await-ed
* Add `#[rocket::async_test]` macro, similar in purpose to `tokio::test`
* Tests now use either `rocket::async_test(async { })` or
  `#[rocket::async_test]` in order to `.await` the futures returned
  from `dispatch()` and `body_{string,bytes}()`
* Update 'test.sh' to reflect the tests that should be passing.

Broken:

* Cloned dispatch and mut_dispatch() with a live previous response now both fail, due to a (partial) check for mutable aliasing in LocalRequest.
* Some tests are still failing and need example-specific changes.
2020-07-11 09:24:28 -07:00
..
absolute-uris-okay-issue-443.rs Revamp testing system for async. 2020-07-11 09:24:28 -07:00
catcher-cookies-1213.rs Set cookies even on error responses. 2020-01-23 21:10:04 -08:00
conditionally-set-server-header-996.rs Revamp testing system for async. 2020-07-11 09:24:28 -07:00
derive-reexports.rs Revamp testing system for async. 2020-07-11 09:24:28 -07:00
fairing_before_head_strip-issue-546.rs Revamp testing system for async. 2020-07-11 09:24:28 -07:00
flash-lazy-removes-issue-466.rs Revamp testing system for async. 2020-07-11 09:24:28 -07:00
form_method-issue-45.rs Revamp testing system for async. 2020-07-11 09:24:28 -07:00
form_value_decoding-issue-82.rs Revamp testing system for async. 2020-07-11 09:24:28 -07:00
head_handling.rs Revamp testing system for async. 2020-07-11 09:24:28 -07:00
limits.rs Revamp testing system for async. 2020-07-11 09:24:28 -07:00
local-request-content-type-issue-505.rs Revamp testing system for async. 2020-07-11 09:24:28 -07:00
local_request_private_cookie-issue-368.rs Revamp testing system for async. 2020-07-11 09:24:28 -07:00
mount_point.rs Migrate core to Rust 2018. 2019-06-25 13:45:23 -04:00
nested-fairing-attaches.rs Revamp testing system for async. 2020-07-11 09:24:28 -07:00
precise-content-type-matching.rs Revamp testing system for async. 2020-07-11 09:24:28 -07:00
redirect_from_catcher-issue-113.rs Revamp testing system for async. 2020-07-11 09:24:28 -07:00
responder_lifetime-issue-345.rs Remove stabilized 'async_await' feature gate and update the minimum nightly version. 2020-07-11 09:24:28 -07:00
route_guard.rs Revamp testing system for async. 2020-07-11 09:24:28 -07:00
segments-issues-41-86.rs Revamp testing system for async. 2020-07-11 09:24:28 -07:00
strict_and_lenient_forms.rs Revamp testing system for async. 2020-07-11 09:24:28 -07:00
unsound-local-request-1312.rs Disable some known-failing tests for now. 2020-07-11 09:24:28 -07:00
uri-percent-encoding-issue-808.rs Revamp testing system for async. 2020-07-11 09:24:28 -07:00