Skip to content

Commit

Permalink
test(NODE-5922): replace hardcoded reference to bson#main (#647)
Browse files Browse the repository at this point in the history
  • Loading branch information
W-A-James authored Feb 9, 2024
1 parent e18b774 commit 22e9b6e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/bench/etc/run_granular_benchmarks.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ const fs = require('fs/promises');
const path = require('path');
const { once } = require('events');
const { Task } = require('dbx-js-tools/packages/bson-bench');
const { LIBRARY_SPEC } = require('../lib/granular/common');

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

0 comments on commit 22e9b6e

Please sign in to comment.