-
Notifications
You must be signed in to change notification settings - Fork 2.5k
always pass handshakeInitializationPacket to ChangeUser #618
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
LGTM |
If the queue is empty before calling a ChangeUser sequence, the sequence will be started without being passed the handshake packet. This makes sure it gets passed. Additionally, validateEnqueue now has a test that handeshake() was called before changeUser(). fixes mysqljs#374
added said test. |
It's actually possible to run it on travis - see https://github.com/sidorares/nodejs-mysql-native/blob/master/.travis.yml |
i just copied what was in |
poke |
I believe you really need to alter your test (even though you coped it from another test) so that it runs on Travis CI first. |
run changeUser tests on travis
Ok, fixed up the tests so they can run on Travis. Noticed that |
👍 |
@seanmonstar LGTM for most parts - thanks! I gave you git/npm push access, feel free to merge release when you're happy with it. My only nitpick: It seems like there is some code duplication now, as the logic for handling |
@felixge good point. i included another commit to consolidate that code into a single method. r? |
LGTM, feel free to merge when you're ready. |
always pass handshakeInitializationPacket to ChangeUser
If the queue is empty before calling a ChangeUser sequence, the sequence will be started without being passed the handshake packet. This makes sure it gets passed.
Additionally, validateEnqueue now has a test that handeshake() was called before changeUser().
fixes #374