MCPcopy
hub / github.com/mysqljs/mysql / done

Function done

test/unit/pool-cluster/test-connection-random.js:25–39  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

23 next();
24
25 function done() {
26 assert.deepEqual(order, [
27 'SLAVE2',
28 'SLAVE3',
29 'SLAVE2',
30 'SLAVE2',
31 'SLAVE1',
32 'SLAVE2',
33 'SLAVE1'
34 ]);
35 cluster.end(function (err) {
36 assert.ifError(err);
37 server.destroy();
38 });
39 }
40
41 function next() {
42 pool.getConnection(function (err, conn) {

Calls

no outgoing calls

Tested by

no test coverage detected