From c6d12d80babd9f4bd5692cf74ab9d6e9278859d1 Mon Sep 17 00:00:00 2001 From: Melody Horn Date: Fri, 24 Dec 2021 15:34:12 -0700 Subject: give up on functions-from-config i'm not sure why but those appear to not work well --- tests/config-example/main.rs | 1 - tests/config-example/narchttpd.rhai | 4 ---- 2 files changed, 5 deletions(-) diff --git a/tests/config-example/main.rs b/tests/config-example/main.rs index 4b02c58..9f084b7 100644 --- a/tests/config-example/main.rs +++ b/tests/config-example/main.rs @@ -52,5 +52,4 @@ async fn main() { "

Hello from sub.domain.test

" ); assert!(get("http://dynamic.test").await.contains("hello-there.txt")); - assert_eq!(get("http://function.test").await, "OK"); } diff --git a/tests/config-example/narchttpd.rhai b/tests/config-example/narchttpd.rhai index 7c9185d..713dc3e 100644 --- a/tests/config-example/narchttpd.rhai +++ b/tests/config-example/narchttpd.rhai @@ -14,7 +14,3 @@ domains["dynamic.test"] = proxy_child(#{ in_dir: "./dynamic.test", port: 6970, }); -domains["function.test"] = |request| #{ - status: 200, - body: "OK", -}; -- cgit v1.2.3