Skip to content

Commit

Permalink
fix failed test
Browse files Browse the repository at this point in the history
  • Loading branch information
tsucchi committed Jul 4, 2014
1 parent dcb7f6d commit d6abfc8
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Build.PL
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ my %args = (
test_files => ((-d '.git' || $ENV{RELEASE_TESTING}) && -d 'xt') ? 't/ xt/' : 't/',
recursive_test_files => 1,


);
if (-d 'share') {
$args{share_dir} = 'share';
Expand Down
2 changes: 1 addition & 1 deletion META.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"Takuya Tsuchida <tsucchi@cpan.org>"
],
"dynamic_config" : 0,
"generated_by" : "Minilla/v0.14.1, CPAN::Meta::Converter version 2.140640",
"generated_by" : "Minilla/v1.0.0, CPAN::Meta::Converter version 2.141170",
"license" : [
"perl_5"
],
Expand Down
20 changes: 16 additions & 4 deletions t/01_sqlite.t
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,10 @@ subtest 'enable_deflate with guard previous disabled', sub {
});
is( $deflate_called, 1);
}
my $row = $db->single('person', { id => $id });
$db->fast_insert('person', {
name => 'Cordelia Glauca',
age => 17,
});
is( $deflate_called, 1); #deflate is now disabled
};

Expand All @@ -73,7 +76,10 @@ subtest 'enable_deflate with guard previous enabled', sub {
});
is( $deflate_called, 1);
}
my $row = $db->single('person', { id => $id });
$db->fast_insert('person', {
name => 'Cordelia Glauca',
age => 17,
});
is( $deflate_called, 2);
};

Expand All @@ -89,7 +95,10 @@ subtest 'disable_deflate with guard previous disabled', sub {
});
is( $deflate_called, 0);
}
my $row = $db->single('person', { id => $id });
$db->fast_insert('person', {
name => 'Cordelia Glauca',
age => 17,
});
is( $deflate_called, 0);
};

Expand All @@ -105,7 +114,10 @@ subtest 'disable_deflate with guard previous enabled', sub {
});
is( $deflate_called, 0);
}
my $row = $db->single('person', { id => $id });
$db->fast_insert('person', {
name => 'Cordelia Glauca',
age => 17,
});
is( $deflate_called, 1);
};

Expand Down

0 comments on commit d6abfc8

Please sign in to comment.