Rocket/examples
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
..
config Revamp testing system for async. 2020-07-11 09:24:28 -07:00
content_types Revamp testing system for async. 2020-07-11 09:24:28 -07:00
cookies Revamp testing system for async. 2020-07-11 09:24:28 -07:00
errors Revamp testing system for async. 2020-07-11 09:24:28 -07:00
fairings Revamp testing system for async. 2020-07-11 09:24:28 -07:00
form_kitchen_sink Revamp testing system for async. 2020-07-11 09:24:28 -07:00
form_validation Revamp testing system for async. 2020-07-11 09:24:28 -07:00
handlebars_templates Revamp testing system for async. 2020-07-11 09:24:28 -07:00
hello_2018 Revamp testing system for async. 2020-07-11 09:24:28 -07:00
hello_person Revamp testing system for async. 2020-07-11 09:24:28 -07:00
hello_world Revamp testing system for async. 2020-07-11 09:24:28 -07:00
json Revamp testing system for async. 2020-07-11 09:24:28 -07:00
managed_queue Revamp testing system for async. 2020-07-11 09:24:28 -07:00
manual_routes Revamp testing system for async. 2020-07-11 09:24:28 -07:00
msgpack Revamp testing system for async. 2020-07-11 09:24:28 -07:00
optional_redirect Revamp testing system for async. 2020-07-11 09:24:28 -07:00
pastebin Revamp testing system for async. 2020-07-11 09:24:28 -07:00
query_params Revamp testing system for async. 2020-07-11 09:24:28 -07:00
ranking Revamp testing system for async. 2020-07-11 09:24:28 -07:00
raw_sqlite Revamp testing system for async. 2020-07-11 09:24:28 -07:00
raw_upload Revamp testing system for async. 2020-07-11 09:24:28 -07:00
redirect Revamp testing system for async. 2020-07-11 09:24:28 -07:00
request_guard Revamp testing system for async. 2020-07-11 09:24:28 -07:00
request_local_state Revamp testing system for async. 2020-07-11 09:24:28 -07:00
session Revamp testing system for async. 2020-07-11 09:24:28 -07:00
state Revamp testing system for async. 2020-07-11 09:24:28 -07:00
static_files Revamp testing system for async. 2020-07-11 09:24:28 -07:00
stream Revamp testing system for async. 2020-07-11 09:24:28 -07:00
tera_templates Revamp testing system for async. 2020-07-11 09:24:28 -07:00
testing Revamp testing system for async. 2020-07-11 09:24:28 -07:00
tls Revamp testing system for async. 2020-07-11 09:24:28 -07:00
todo Revamp testing system for async. 2020-07-11 09:24:28 -07:00
uuid Revamp testing system for async. 2020-07-11 09:24:28 -07:00