File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,8 @@ package MetaCPAN::TestServer;
22
33use MetaCPAN::Moose;
44
5+ use Cpanel::JSON::XS qw( encode_json ) ;
6+ use MetaCPAN::ESConfig qw( es_config ) ;
57use MetaCPAN::Script::Author ();
68use MetaCPAN::Script::Cover ();
79use MetaCPAN::Script::CPANTestersAPI ();
@@ -285,7 +287,7 @@ sub test_index_missing {
285287 my $self = $_ [0];
286288
287289 subtest ' missing index' => sub {
288- my $scoverindexjson = MetaCPAN::Script::Mapping::Cover:: mapping;
290+ my $cover_mapping_json = encode_json( es_config -> mapping( ' cover ' ) ) ;
289291
290292 subtest ' delete cover index' => sub {
291293 local @ARGV = qw( mapping --delete_index cover) ;
@@ -300,7 +302,7 @@ sub test_index_missing {
300302 local @ARGV = (
301303 ' mapping' , ' --create_index' ,
302304 ' cover' , ' --patch_mapping' ,
303- qq( { "cover": $scoverindexjson })
305+ qq( { "cover": $cover_mapping_json })
304306 );
305307 my $mapping
306308 = MetaCPAN::Script::Mapping-> new_with_options(
You can’t perform that action at this time.
0 commit comments