polyccon / Crumbs

A library for all your favourite biscuits!
http://crumbs-fac.herokuapp.com/
0 stars 0 forks source link

Fixes tests #41

Closed dangerdak closed 7 years ago

dangerdak commented 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

dangerdak commented 7 years ago

Actually the dbConnection.end() might not work - what if one of the other tests finishes later than the one with .end in?