Skip to content

Commit

Permalink
support Devel::NYTProf 5.06 heigher only
Browse files Browse the repository at this point in the history
  • Loading branch information
bayashi committed May 1, 2014
1 parent f0595c6 commit 664a59b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion Makefile.PL
Expand Up @@ -5,7 +5,7 @@ all_from 'lib/Plack/Middleware/Profiler/NYTProf.pm';
requires(
'parent' => 0,
'Plack' => 0,
'Devel::NYTProf' => 0,
'Devel::NYTProf' => '5.06',
'Time::HiRes' => 0,
'File::Which' => 0,
);
Expand Down
2 changes: 0 additions & 2 deletions t/01_profile.t
Expand Up @@ -20,8 +20,6 @@ subtest 'is profiling result created' => sub {

is $res->code, 200, "Response is returned successfully";

ok -e "nytprof.out", "Exists nytprof.out";

my $regex = qr/nytprof\.\d+\-(\d+)\.\d+\.out/;
for my $file ( glob("nytprof.*.out") ) {
like $file, $regex, "Exists profiling result file: $file";
Expand Down

0 comments on commit 664a59b

Please sign in to comment.