diff --git a/src/es_archiver/lib/records/__tests__/filter_records_stream.js b/src/es_archiver/lib/records/__tests__/filter_records_stream.js index 62257d3569150..92090f784b2ae 100644 --- a/src/es_archiver/lib/records/__tests__/filter_records_stream.js +++ b/src/es_archiver/lib/records/__tests__/filter_records_stream.js @@ -52,16 +52,16 @@ describe('esArchiver: createFilterRecordsStream()', () => { }); it('produces record values that have a matching type', async () => { - const type1 = chance.word(); + const type1 = chance.word({ length: 5 }); const output = await createPromiseFromStreams([ createListStream([ { type: type1, value: {} }, { type: type1, value: {} }, - { type: chance.word(), value: {} }, - { type: chance.word(), value: {} }, + { type: chance.word({ length: 10 }), value: {} }, + { type: chance.word({ length: 10 }), value: {} }, { type: type1, value: {} }, - { type: chance.word(), value: {} }, - { type: chance.word(), value: {} }, + { type: chance.word({ length: 10 }), value: {} }, + { type: chance.word({ length: 10 }), value: {} }, ]), createFilterRecordsStream(type1), createConcatStream([]),