my $got_warn = 0; eval { $webhook_fail->process(); } or do { $got_warn = 1; }; ok( $got_warn, "Signature warning generated"); ok( !$webhook_fail->success, "Signature error" );