mirror of
https://github.com/zerotier/ratpack.git
synced 2026-05-22 16:27:23 -07:00
additional negative testing for compose_handler! macro?
Signed-off-by: Erik Hollensbe <linux@hollensbe.org>
This commit is contained in:
@@ -96,5 +96,12 @@ mod tests {
|
||||
|
||||
assert_eq!(req.headers().get("wakka").unwrap(), "wakka wakka");
|
||||
assert!(response.is_none());
|
||||
|
||||
let handler = compose_handler!(two);
|
||||
|
||||
assert!(handler
|
||||
.perform(Request::default(), None, Params::new())
|
||||
.await
|
||||
.is_err());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user