From 577e461cce0706dc4f98dfab593eec0b69e295c0 Mon Sep 17 00:00:00 2001 From: Abhilash Date: Thu, 12 Dec 2024 12:03:51 +0530 Subject: [PATCH] test: fix couchbase test for esm --- packages/collector/test/tracing/database/couchbase/test.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/collector/test/tracing/database/couchbase/test.js b/packages/collector/test/tracing/database/couchbase/test.js index 43862cfc0..db8adca78 100644 --- a/packages/collector/test/tracing/database/couchbase/test.js +++ b/packages/collector/test/tracing/database/couchbase/test.js @@ -152,6 +152,9 @@ async function configureCouchbase() { const couchbaseVersions = ['latest', 'v443']; couchbaseVersions.forEach(version => { + // NOTE: require-mock is not working with esm apps. There is also no need to run the ESM APP for all versions. + if (process.env.RUN_ESM && version !== 'latest') return; + // NOTE: it takes 1-2 minutes till the couchbase server can be reached via docker mochaSuiteFn(`tracing/couchbase@${version}`, function () { this.timeout(config.getTestTimeout() * 4);