From 00bd06d6d327032bcae0f2bd00526953971a5750 Mon Sep 17 00:00:00 2001 From: StefanoPetrilli Date: Tue, 4 Jul 2023 23:55:34 +0200 Subject: [PATCH] update existing tests --- tests/unittest.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/unittest.cpp b/tests/unittest.cpp index 2e9028d62..756eb483d 100644 --- a/tests/unittest.cpp +++ b/tests/unittest.cpp @@ -1589,6 +1589,10 @@ TEST_CASE("local_middleware") return "works!"; }); +#ifndef CROW_DISABLE_STATIC_DIR + app.add_static_dir(); + app.add_blueprint(); +#endif app.validate(); auto _ = app.bindaddr(LOCALHOST_ADDRESS).port(45451).run_async(); @@ -3155,6 +3159,8 @@ TEST_CASE("blueprint") bp.register_blueprint(sub_bp); sub_bp.register_blueprint(sub_sub_bp); + app.add_blueprint(); + app.add_static_dir(); app.validate(); {