mirror of
https://github.com/atlanticbiomedical/biomedjs.git
synced 2025-07-02 00:47:26 -04:00
18 lines
403 B
JavaScript
18 lines
403 B
JavaScript
![]() |
|
||
|
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);
|
||
|
});
|
||
|
});
|
||
|
|