@@ -, +, @@ rebuild_elastic_search.pl - change index name --- t/db_dependent/Koha_Elasticsearch_Indexer.t | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/t/db_dependent/Koha_Elasticsearch_Indexer.t +++ a/t/db_dependent/Koha_Elasticsearch_Indexer.t @@ -74,7 +74,7 @@ subtest 'create_index() tests' => sub { my $indexer; ok( - $indexer = Koha::SearchEngine::Elasticsearch::Indexer->new({ 'index' => 'biblios' }), + $indexer = Koha::SearchEngine::Elasticsearch::Indexer->new({ 'index' => 'biblios_test' }), 'Creating a new indexer object' ); ok( @@ -145,7 +145,7 @@ subtest '_convert_marc_to_json() tests' => sub { ); my @records = ( $marc_record ); - my $importer = Koha::SearchEngine::Elasticsearch::Indexer->new({ index => 'biblios' }); + my $importer = Koha::SearchEngine::Elasticsearch::Indexer->new({ index => 'biblios_test' }); my $conv = $importer->_convert_marc_to_json( \@records )->next(); is( $conv->{author}[0][0], "Author", "First mapped author should be 100a"); is( $conv->{author}[1][0], "Corp Author", "Second mapped author should be 110a"); --