Skip to content

Commit

Permalink
Correctly fix merge conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
rudolf committed Apr 12, 2021
1 parent 7400699 commit 3b4922a
Showing 1 changed file with 10 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -388,11 +388,11 @@ describe('migration actions', () => {
}
`);

const results = ((await searchForOutdatedDocuments(client, {
batchSize: 1000,
targetIndex: 'reindex_target_excluded_docs',
outdatedDocumentsQuery: undefined,
})()) as Either.Right<SearchResponse>).right.outdatedDocuments;
const results = ((await searchForOutdatedDocuments(
client,
'reindex_target_excluded_docs',
undefined as any
)()) as Either.Right<SearchResponse>).right.outdatedDocuments;
expect(results.map((doc) => doc._source.title)).toMatchInlineSnapshot(`
Array [
"doc 1",
Expand Down Expand Up @@ -757,10 +757,11 @@ describe('migration actions', () => {
)()) as Either.Right<SearchResponse>).right.outdatedDocuments;
expect(resultsWithQuery.length).toBe(3);

const resultsWithoutQuery = ((await searchForOutdatedDocuments(client, {
targetIndex: 'existing_index_with_docs',
outdatedDocumentsQuery: undefined,
})()) as Either.Right<SearchResponse>).right.outdatedDocuments;
const resultsWithoutQuery = ((await searchForOutdatedDocuments(
client,
'existing_index_with_docs',
undefined as any
)()) as Either.Right<SearchResponse>).right.outdatedDocuments;
expect(resultsWithoutQuery.length).toBe(5);
});
it('resolves with _id, _source, _seq_no and _primary_term', async () => {
Expand Down

0 comments on commit 3b4922a

Please sign in to comment.