var assert = require('assert'),
    Lapidus = require('../index.js'),
    spawnSync = require('child_process').spawnSync,
    fs = require('fs');

describe('MySQL', function () {

    it('connects to MySQL valid backends', function (done) {
        var output = spawnSync('node', ['index.js', '-c', './test/config/lapidus.json'], {timeout: 10000});

        console.log(output.stdout.toString());
        console.error(output.stderr.toString());
        assert.equal(output.status, 0);

        done();
    });
});

@@ -176,60 +176,44 @@
 ) %7B%0A
-%0A
     
-it('connects to MySQL valid backends', 
+var output;%0A%0A    before(
 function
  (do
@@ -208,17 +208,16 @@
 function
- 
 (done) %7B
@@ -221,28 +221,24 @@
 ) %7B%0A        
-var 
 output = spa
@@ -320,82 +320,155 @@
 1000
-0
+ 
 %7D);%0A
-%0A        console.log(output.stdout.toString());%0A        console.error
+        done();%0A    %7D);%0A%0A    it('connects to MySQL valid backends', function () %7B%0A        assert.equal(output.status, 0);%0A        assert.equal
 (out
@@ -492,65 +492,174 @@
 ng()
+, ''
 );%0A    
-    assert.equal(output.status, 0);%0A%0A        done(
+%7D);%0A%0A    it('creates a lookup table of primary keys', function() %7B%0A        assert.notEqual(output.stdout.toString().indexOf('caching for fast lookups'), -1
 );%0A 

Add tests for MySQL worker