Skip to content

Commit 06c369d

Browse files
committed
chore: fix args
1 parent 1d6eba6 commit 06c369d

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

test/benchmarks/driverBench/index.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ let bsonType = 'js-bson';
1111
const { inspect } = require('util');
1212
const { writeFile } = require('fs/promises');
1313
const { makeParallelBenchmarks, makeSingleBench, makeMultiBench } = require('../mongoBench/suites');
14-
const { MONGODB_URI, MONGODB_CLIENT_OPTIONS } = require('./common');
14+
const { MONGODB_CLIENT_OPTIONS } = require('./common');
1515

1616
const hw = os.cpus();
1717
const ram = os.totalmem() / 1024 ** 3;
@@ -91,7 +91,12 @@ benchmarkRunner
9191
info: {
9292
test_name: benchmarkName,
9393
tags: [bsonType],
94-
args: { MONGODB_URI, MONGODB_CLIENT_OPTIONS }
94+
args: {
95+
// Sadly args can only be int32
96+
...(typeof MONGODB_CLIENT_OPTIONS.timeoutMS === 'number'
97+
? { timeoutMS: MONGODB_CLIENT_OPTIONS.timeoutMS }
98+
: {})
99+
}
95100
},
96101
metrics: [{ name: 'megabytes_per_second', value: result }]
97102
};

0 commit comments

Comments
 (0)