chore(deps): Update mysql package dependency to latest version. #112
Conversation
|
Per discussion with @jrgm, we'll push ahead with trying to make this update stick and then try it out to see if it resolves the connection problem in #108. Unfortunately I'm starting to suspect some sort of bug in the mysql package, as the test failure here is due to a timeout when calling |
|
Blocked on upstream bug: mysqljs/mysql#1291 |
a69d2b2
to
c6e5773
|
Well, this escalated quickly... The intended upgrade to latest node-mysql is indeed blocked by an upstream bug, but in order to find and fix that bug, I ended up spending a lot of quality time with the test suite. I'm rolling my testsuite changes into this PR as well, which include:
With mysqljs/mysql#1291 applied locally, I get a clean (and significantly nicer-looking) test run. whew |
|
Alrighty, this is finally ready for review! It turned out quite churny due to the test updates, but they're mostly mechanical e.g. updating |
| @@ -169,10 +169,6 @@ module.exports = function (log, error) { | |||
| Memory.prototype.createAccountResetToken = function (tokenId, accountResetToken) { | |||
| tokenId = tokenId.toString('hex') | |||
|
|
|||
| if ( accountResetTokens[tokenId] ) { | |||
philbooth
Dec 16, 2015
Contributor
The comments don't mention the reason for this but presumably it was just some errant rejection that wasn't being picked up by the pre-promisified tests? Is there a case to be made for an explicit assertion somewhere to cover it, or is it sufficient that the promise simply doesn't reject?
The comments don't mention the reason for this but presumably it was just some errant rejection that wasn't being picked up by the pre-promisified tests? Is there a case to be made for an explicit assertion somewhere to cover it, or is it sufficient that the promise simply doesn't reject?
rfk
Dec 16, 2015
Author
Member
This behaviour didn't match the mysql backend, which silently replaces any existing reset token with a new one. When I upgraded the test runner, the tests started failing with this error.duplicate. So AFAICT we already have test coverage for, for some reason the test was just failing to fail with the old version of the runner!
This behaviour didn't match the mysql backend, which silently replaces any existing reset token with a new one. When I upgraded the test runner, the tests started failing with this error.duplicate. So AFAICT we already have test coverage for, for some reason the test was just failing to fail with the old version of the runner!
|
Looks good to me. |
chore(deps): Update mysql package dependency to latest version.
Because AFAICT it's got some changes to how pools are handled, and we want to eliminate variables while digging into #108.