File tree 1 file changed +10
-3
lines changed
1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -2,14 +2,21 @@ use Test2::V0;
2
2
use strictures 2;
3
3
4
4
use Test::DependentModules ' test_all_dependents' ;
5
+ use MetaCPAN::Client;
5
6
6
7
skip_all " ENV var TEST_DEPENDENTS not set" if not $ENV {TEST_DEPENDENTS };
7
8
8
9
# duplicate error output into an array for later printing
9
10
my @error_log ;
10
- my $old = \&Test::DependentModules::_error_log;
11
- my $new = sub { push @error_log , @_ ; $old -> (@_ ); };
12
- { no warnings ' redefine' ; *Test::DependentModules::_error_log = $new ; }
11
+ my $old_log = \&Test::DependentModules::_error_log;
12
+ my $new_log = sub { push @error_log , @_ ; $old_log -> (@_ ); };
13
+ { no warnings ' redefine' ; *Test::DependentModules::_error_log = $new_log ; }
14
+
15
+ # force metacpan to actually return the whole dependents list
16
+ # https://github.com/metacpan/metacpan-client/issues/122
17
+ my $old_fetch = \&MetaCPAN::Client::fetch;
18
+ my $new_fetch = sub { $old_fetch -> ( shift , shift . " ?size=5000" , @_ ) };
19
+ { no warnings ' redefine' ; *MetaCPAN::Client::fetch = $new_fetch ; }
13
20
14
21
test_all_dependents PPI => {
15
22
exclude => qr / ^(
You can’t perform that action at this time.
0 commit comments