Exemple #1
0
        MqTestsUtil.whenTasksEmpty(SearchConstants.mq.TASK_DELETE_DOCUMENT, function() {
            ElasticSearch.refresh(function(err) {
                if (err) {
                    return callback(err);
                }

                RestAPI.Search.search(restCtx, searchType, params, opts, callback);
            });
        });
Exemple #2
0
 MqTestsUtil.whenTasksEmpty(SearchConstants.mq.TASK_DELETE_DOCUMENT, () => {
   ElasticSearch.refresh(err => {
     assert.ok(!err);
     return callback();
   });
 });