loopbackio / loopback-connector-elastic-search

Strongloop Loopback connector for Elasticsearch
MIT License
79 stars 55 forks source link

Fix tests to also run when `refresh` is not enabled #96

Open pulkitsinghal opened 7 years ago

pulkitsinghal commented 7 years ago

02.basic-querying.test.js tests should run with the usecase where refresh is not enabled.

That is not what happens right now! Because the new default is to have refresh enabled by default in esConnector, until and unless we specify settings.refreshOn=[];

So we need to restructure the tests so that 02.basic-querying.test.js will work with a situation where where refresh isn't enabled for anything at all.

pulkitsinghal commented 7 years ago

FYI see above cc @aquid @wolfgang-s