Files
biomedjs/node_modules/strong-store-cluster/test/concurrent-inc.js

18 lines
403 B
JavaScript
Raw Permalink Normal View History

2015-04-06 03:28:20 -04:00
var helper = require('./helper/cluster-helper');
suite('concurrent increment', function() {
test('master only', function(cb) {
helper.run('do-concurrent-inc', true, 0, 4, cb);
});
test('four workers', function(cb) {
helper.run('do-concurrent-inc', false, 4, 4, cb);
});
test('master and four workers', function(cb) {
helper.run('do-concurrent-inc', true, 4, 4, cb);
});
});