-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathnedb-1.js
25 lines (22 loc) · 1.01 KB
/
nedb-1.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/*
PR submitted: https://github.com/louischatriot/nedb/pull/610
Issue submitted: https://github.com/louischatriot/nedb/issues/609
Function ensureIndex() of Datastore.js is treated as sync,
but it has an async cb when persistNewState() is called.
Some interleaving may fail one assertion of the TC.
There is also an inconsistency with the comments that states that it is a sync function.
To run it:
>> node tests/experiments/exploratory/failing-tests/<script-name>.js
*/
const benchmarkDir = require('../../benchmark_config')();
const runOneMochaTest = require('./runonemochatest');
runOneMochaTest({
benchmarkFolder: `${benchmarkDir}/exploratory/nedb`,
runs: 100,
strategy: 'random', // 1-postpone-history (for diagnosis mode)
checkInterleaving: true,
file: `test/db.test.js`,
title: 'Database Using indexes ensureIndex and index initialization in database loading ensureIndex can be called before a loadDatabase and still be initialized and filled correctly',
parameters: '',
settings: ''
});