moved tests to examples directory

This commit is contained in:
AJ ONeal 2015-11-09 23:19:42 +00:00
parent 3b0b2f7097
commit e6155d9f33
5 changed files with 12 additions and 12 deletions

View File

@ -0,0 +1,8 @@
var cluster = require('cluster');
if (cluster.isMaster) {
require('./master');
}
else {
require('./worker');
}

View File

@ -6,7 +6,7 @@ var numCores = Math.max(minCores, require('os').cpus().length);
var i; var i;
function run(connect, ipcKey) { function run(connect, ipcKey) {
var sqlite3 = require('./cluster'); var sqlite3 = require('../../cluster');
return sqlite3.create({ return sqlite3.create({
bits: 128 bits: 128

View File

@ -35,7 +35,7 @@ function testSelect(client) {
} }
function init(ipcKey) { function init(ipcKey) {
var sqlite3 = require('./cluster'); var sqlite3 = require('../../cluster');
return sqlite3.create({ return sqlite3.create({
bits: 128 bits: 128
@ -60,7 +60,7 @@ function init(ipcKey) {
} }
function run(connect, ipcKey) { function run(connect, ipcKey) {
var sqlite3 = require('./cluster'); var sqlite3 = require('../../cluster');
return sqlite3.create({ return sqlite3.create({
bits: 128 bits: 128

View File

@ -1,7 +1,7 @@
'use strict'; 'use strict';
function run() { function run() {
var sqlite3 = require('./standalone'); var sqlite3 = require('../standalone');
var promise; var promise;
promise = sqlite3.create({ promise = sqlite3.create({

View File

@ -1,8 +0,0 @@
var cluster = require('cluster');
if (cluster.isMaster) {
require('./test-cluster-master');
}
else {
require('./test-cluster-worker');
}