Skip to content

Timezones integration tests intermittently failing #1045

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

Closed
adrianblynch opened this issue Apr 1, 2015 · 6 comments
Closed

Timezones integration tests intermittently failing #1045

adrianblynch opened this issue Apr 1, 2015 · 6 comments

Comments

@adrianblynch
Copy link
Contributor

I'm running the integration tests and they fail on:

node-mysql/test/integration/connection/test-timezones.js:67:12

With an assertion error:

"Wed Apr 01 2015 07:50:00 GMT+0100 (BST)" === "Wed Apr 01 2015 08:50:00 GMT+0100 (BST)"

Throwing in some debugging, the failing case is when the offset is 0.

I'm running this locally, testing using your guidance from the readme.

SHOW VARIABLES LIKE "%version%";

Returns:

Variable Value
innodb_version 5.6.23-72.1
protocol_version 10
slave_type_conversions
version 5.6.23-72.1
version_comment Homebrew
version_compile_machine x86_64
version_compile_os osx10.9

Just to add a little more confusion, they passed once with no changes!

Is there any more info I can supply to help debug this?

@dougwilson
Copy link
Member

Yes, I know they do that on Travis CI. I'm not sure what the reason is. I've asked people in the past to help, but never got a response :( Please, please, if you can figure it out, I would be forever grateful!!

@adrianblynch
Copy link
Contributor Author

I hate dealing with dates but challenge tentatively accepted!

@adrianblynch
Copy link
Contributor Author

I haven't found the underlying cause, but I know what I can do to make the tests pass.

The offsets are popped of the tests array:

var tests = [0, 1, 5, 12, 26, -1, -5, -20, 'Z', 'local'];

With '0' being last and failing.

When I reduce down to just that:

var tests = [0];`

The tests start to pass.

Adding the others back in, one at a time, the 0 offset test starts to fail again when local is introduced back. This means the minimum test to see the failure is:

var tests = [0, 'local'];

To sum up, testing local first causes 0 to fail.

I'll dig a little bit deeper...

@adrianblynch
Copy link
Contributor Author

I've not looked at this in a while. Still on my todo list though!

@dougwilson
Copy link
Member

@adrianblynch there's no rush :)

@dougwilson
Copy link
Member

And updates :)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants