Skip to content

Commit

Permalink
test: extened the native module retry test
Browse files Browse the repository at this point in the history
  • Loading branch information
aryamohanan committed Aug 14, 2024
1 parent eeb4897 commit 78f1a60
Showing 1 changed file with 10 additions and 13 deletions.
23 changes: 10 additions & 13 deletions packages/collector/test/nativeModuleRetry/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,21 +153,18 @@ function runCopyPrecompiledForNativeAddonTest(agentControls, opts) {
agentControls.getEvents()
]).then(opts.check)
));
});

describe('validate precompiled binaries', () => {
it('should successfully copy the precompiled binaries', async () => {
// For the test, the precompiled binaries are copied to the path node_modules/@instana/shared-metrics.
const copiedBinaryPath = require('path').join(
__dirname,
'..',
'..',
'..',
'shared-metrics',
'node_modules',
`${opts.name}`
);
await check(copiedBinaryPath);
// const copiedBinaryPath = require('path').join(
// __dirname,
// '..',
// '..',
// '..',
// 'shared-metrics',
// 'node_modules',
// `${opts.name}`
// );
await check(opts.nativeModuleFolder);
});
});
}

0 comments on commit 78f1a60

Please sign in to comment.