Skip to content

Commit 22e9b6e

Browse files
authored
test(NODE-5922): replace hardcoded reference to bson#main (#647)
1 parent e18b774 commit 22e9b6e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/bench/etc/run_granular_benchmarks.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ const fs = require('fs/promises');
99
const path = require('path');
1010
const { once } = require('events');
1111
const { Task } = require('dbx-js-tools/packages/bson-bench');
12+
const { LIBRARY_SPEC } = require('../lib/granular/common');
1213

1314
const BENCHMARK_REGEX = /(.*)\.bench\.js$/;
1415
const BENCHMARK_PATH = path.resolve(`${__dirname}/../lib/granular`);
@@ -18,7 +19,7 @@ const DOCUMENT_ROOT = path.resolve(`${__dirname}/../documents`);
1819
// FIXME(NODE-5759): replace this with a call to Package.install()
1920
await new Task({
2021
documentPath: path.resolve(`${DOCUMENT_ROOT}/binary_small.json`),
21-
library: `bson#main`,
22+
library: LIBRARY_SPEC,
2223
iterations: 1,
2324
warmup: 1,
2425
operation: 'deserialize',

0 commit comments

Comments
 (0)