File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ package MetaCPAN::TestServer;
22
33use MetaCPAN::Moose;
44
5+ use MetaCPAN::ESConfig qw( es_config ) ;
56use MetaCPAN::Script::Author ();
67use MetaCPAN::Script::Cover ();
78use MetaCPAN::Script::CPANTestersAPI ();
@@ -283,7 +284,7 @@ sub test_index_missing {
283284 my $self = $_ [0];
284285
285286 subtest ' missing index' => sub {
286- my $scoverindexjson = MetaCPAN::Script::Mapping::Cover:: mapping;
287+ my $cover_mapping_json = encode_json( es_config -> mapping( ' cover ' ) ) ;
287288
288289 subtest ' delete cover index' => sub {
289290 local @ARGV = qw( mapping --delete_index cover) ;
@@ -298,7 +299,7 @@ sub test_index_missing {
298299 local @ARGV = (
299300 ' mapping' , ' --create_index' ,
300301 ' cover' , ' --patch_mapping' ,
301- qq( { "cover": $scoverindexjson })
302+ qq( { "cover": $cover_mapping_json })
302303 );
303304 my $mapping
304305 = MetaCPAN::Script::Mapping-> new_with_options(
You can’t perform that action at this time.
0 commit comments