Closed dangerdak closed 7 years ago
dbConnection.end() closes all open connections belonging to the 'dbConnection' pool: https://github.com/mysqljs/mysql/issues/1395
And if we're using a select query to test our insert, the select must be in a nested callback (as both operations are async)
fixes #39 relates #40
Actually the dbConnection.end() might not work - what if one of the other tests finishes later than the one with .end in?
dbConnection.end() closes all open connections belonging to the 'dbConnection' pool: https://github.com/mysqljs/mysql/issues/1395
And if we're using a select query to test our insert, the select must be in a nested callback (as both operations are async)
fixes #39 relates #40