Skip to content

Commit

Permalink
Only exclude 8.16.0 from the esm tests
Browse files Browse the repository at this point in the history
  • Loading branch information
uurien committed Nov 15, 2024
1 parent 217db9d commit 05f80a2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/datadog-instrumentations/src/elasticsearch.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ addHook({ name: '@elastic/transport', file: 'lib/Transport.js', versions: ['>=8'
return exports
})

addHook({ name: '@elastic/elasticsearch', file: 'lib/Transport.js', versions: ['>=5.6.16 <8', '>=8 <8.16.0'] }, Transport => {
addHook({ name: '@elastic/elasticsearch', file: 'lib/Transport.js', versions: ['>=5.6.16 <8', '>=8'] }, Transport => {
shimmer.wrap(Transport.prototype, 'request', createWrapRequest('elasticsearch'))
shimmer.wrap(Transport.prototype, 'getConnection', createWrapGetConnection('elasticsearch'))
return Transport
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ describe('esm', () => {
let proc
let sandbox

withVersions('elasticsearch', ['@elastic/elasticsearch'], version => {
// excluding 8.16.0 for esm tests, because it is not working: https://github.com/elastic/elasticsearch-js/issues/2466
withVersions('elasticsearch', ['@elastic/elasticsearch'], '<8.16.0 >8.16.0', version => {
before(async function () {
this.timeout(20000)
sandbox = await createSandbox([`'@elastic/elasticsearch@${version}'`], false, [
Expand Down

0 comments on commit 05f80a2

Please sign in to comment.