(handler, options)
| 1164 | } |
| 1165 | |
| 1166 | function wrapClient(handler, options) { |
| 1167 | return (function wrappedTestCase(done) { |
| 1168 | const client = newInstance(options); |
| 1169 | utils.series([ |
| 1170 | client.connect.bind(client), |
| 1171 | function testItem(next) { |
| 1172 | handler(client, next); |
| 1173 | }, |
| 1174 | client.shutdown.bind(client) |
| 1175 | ], done); |
| 1176 | }); |
| 1177 | } |
| 1178 | |
| 1179 | function newInstance(options) { |
| 1180 | const opts = helper.getOptions(utils.extend(options || {}, { graphOptions : { name: 'name1' }})); |
no test coverage detected