diff --git a/src/core/ngx_cycle.c b/src/core/ngx_cycle.c index 410cc3cd2..c0edfccce 100644 --- a/src/core/ngx_cycle.c +++ b/src/core/ngx_cycle.c @@ -353,8 +353,10 @@ ngx_init_cycle(ngx_cycle_t *old_cycle) } - if (ngx_create_paths(cycle, ccf->user) != NGX_OK) { - goto failed; + if (!ngx_test_config) { + if (ngx_create_paths(cycle, ccf->user) != NGX_OK) { + goto failed; + } }