Skip to content

Commit

Permalink
define default block for test file
Browse files Browse the repository at this point in the history
  • Loading branch information
pixeldin committed Nov 15, 2022
1 parent b5bc8c7 commit b2a1e7d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions t/plugin/jwt-auth3.t
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,9 @@ add_block_preprocessor(sub {

if (!defined $block->request) {
$block->set_value("request", "GET /t");
}

if (!$block->response_body) {
$block->set_value("response_body eval", "qr/^$/");
if (!$block->response_body) {
$block->set_value("response_body", "passed\n");
}
}
});

Expand Down

0 comments on commit b2a1e7d

Please sign in to comment.