Lines 41-46
SKIP: {
Link Here
|
41 |
skip 'Elasticsearch configuration not available', 3 |
41 |
skip 'Elasticsearch configuration not available', 3 |
42 |
if $@; |
42 |
if $@; |
43 |
|
43 |
|
|
|
44 |
$schema->storage->txn_begin; |
45 |
|
44 |
my $builder = t::lib::TestBuilder->new; |
46 |
my $builder = t::lib::TestBuilder->new; |
45 |
my $biblio = |
47 |
my $biblio = |
46 |
$builder->build_sample_biblio; # create biblio before we start mocking to avoid trouble indexing on creation |
48 |
$builder->build_sample_biblio; # create biblio before we start mocking to avoid trouble indexing on creation |
Lines 157-165
SKIP: {
Link Here
|
157 |
|
159 |
|
158 |
}; |
160 |
}; |
159 |
|
161 |
|
|
|
162 |
$schema->storage->txn_rollback; |
163 |
|
160 |
subtest 'update_index' => sub { |
164 |
subtest 'update_index' => sub { |
|
|
165 |
|
161 |
plan tests => 1; |
166 |
plan tests => 1; |
162 |
|
167 |
|
|
|
168 |
$schema->storage->txn_begin; |
169 |
|
163 |
my $biblio = $builder->build_sample_biblio; |
170 |
my $biblio = $builder->build_sample_biblio; |
164 |
my $biblionumber = $biblio->biblionumber; |
171 |
my $biblionumber = $biblio->biblionumber; |
165 |
$biblio->delete; |
172 |
$biblio->delete; |
Lines 171-176
SKIP: {
Link Here
|
171 |
} |
178 |
} |
172 |
"", "update_index called with deleted biblionumber should not crash"; |
179 |
"", "update_index called with deleted biblionumber should not crash"; |
173 |
|
180 |
|
|
|
181 |
$schema->storage->txn_rollback; |
174 |
}; |
182 |
}; |
175 |
|
183 |
|
176 |
} |
184 |
} |
177 |
- |
|
|