From 1e93f17a58d8c75071c7800bdb7fbed2ca103646 Mon Sep 17 00:00:00 2001 From: Martin Algesten Date: Wed, 20 May 2020 21:22:35 +0200 Subject: [PATCH] fix test problem --- src/test/simple.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/simple.rs b/src/test/simple.rs index ccc1a0b..784f135 100644 --- a/src/test/simple.rs +++ b/src/test/simple.rs @@ -84,7 +84,7 @@ fn body_as_json_deserialize() { hello: String, } - test::set_handler("/body_as_json", |_unit| { + test::set_handler("/body_as_json_deserialize", |_unit| { test::make_response( 200, "OK", @@ -92,7 +92,7 @@ fn body_as_json_deserialize() { "{\"hello\":\"world\"}".to_string().into_bytes(), ) }); - let resp = get("test://host/body_as_json").call(); + let resp = get("test://host/body_as_json_deserialize").call(); let json = resp.into_json_deserialize::().unwrap(); assert_eq!(json.hello, "world"); }