diff --git a/test/fixtures/elasticsearch.js b/test/fixtures/elasticsearch.js index eb4d0ad..118c002 100644 --- a/test/fixtures/elasticsearch.js +++ b/test/fixtures/elasticsearch.js @@ -15,7 +15,7 @@ Client.prototype.index = function (params) { return Promise.resolve({ _index: params.index || 'index', _type: params.type || 'type', - _id: uniqueId('testDoc'), + _id: params.id || uniqueId('testDoc'), _version: 1, _shards: { total: shardCount, successful: shardCount, failed: 0 }, created: true