update existing tests

This commit is contained in:
StefanoPetrilli 2023-07-04 23:55:34 +02:00 committed by gittiver
parent a62956b61a
commit 00bd06d6d3

View File

@ -1589,6 +1589,10 @@ TEST_CASE("local_middleware")
return "works!"; return "works!";
}); });
#ifndef CROW_DISABLE_STATIC_DIR
app.add_static_dir();
app.add_blueprint();
#endif
app.validate(); app.validate();
auto _ = app.bindaddr(LOCALHOST_ADDRESS).port(45451).run_async(); auto _ = app.bindaddr(LOCALHOST_ADDRESS).port(45451).run_async();
@ -3155,6 +3159,8 @@ TEST_CASE("blueprint")
bp.register_blueprint(sub_bp); bp.register_blueprint(sub_bp);
sub_bp.register_blueprint(sub_sub_bp); sub_bp.register_blueprint(sub_sub_bp);
app.add_blueprint();
app.add_static_dir();
app.validate(); app.validate();
{ {