Skip to content

Commit 3168e53

Browse files
yanickcromedome
authored andcommitted
test condition was wrong (oops)
1 parent f9365c2 commit 3168e53

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

t/cookie.t

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,18 @@ BEGIN {
1111
use Dancer2::Core::Cookie;
1212
use Dancer2::Core::Request;
1313

14-
diag "If you want extra speed, install HTTP::XSCookies"
15-
if !Dancer2::Core::Cookie::_USE_XS;
14+
if ( Dancer2::Core::Cookie::_USE_XS ) {
1615

17-
subtest 'with HTTP::XSCookies' => \&all_tests
18-
if Dancer2::Core::Cookie::_USE_XS;
16+
subtest 'with HTTP::XSCookies' => \&all_tests;
1917

20-
if ( Dancer2::Core::Cookie::_USE_XS ) {
2118
no warnings 'redefine';
2219
*Dancer2::Core::Cookie::to_header = \&Dancer2::Core::Cookie::pp_to_header;
2320
}
21+
else {
22+
diag "If you want extra speed, install HTTP::XSCookies";
23+
}
2424

25-
subtest 'w/o HTTP::XSCookies' => \&all_tests
26-
if Dancer2::Core::Cookie::_USE_XS;
25+
subtest 'w/o HTTP::XSCookies' => \&all_tests;
2726

2827
sub all_tests {
2928
my $cookie = Dancer2::Core::Cookie->new( name => "foo" );

0 commit comments

Comments
 (0)