Skip to content
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

Fix occasional spurious MQTT message handler spec failures #231

Merged
merged 1 commit into from
May 10, 2023

Conversation

timcowlishaw
Copy link
Contributor

The two tests marked as skipped on github actions were also failing for me locally, so i had a look into why - it was caused by a timezone discrepancy - the timestamp in the test data didn't specify a timezone, and the handcoded expected value was in Barcelona time, while it was being parsed as UTC. Explicitly making this a UTC timestamp removes test brittleness!

The two tests marked as skipped on github actions were also failing for me locally, so i had a look into why - it was caused by a timezone discrepancy - the timestamp in the test data didn't specify a timezone, and the handcoded expected value was in Barcelona time, while it was being parsed as UTC. Explicitly making this a UTC timestamp removes test brittleness!
@timcowlishaw timcowlishaw requested a review from oscgonfer April 19, 2023 09:56
@timcowlishaw timcowlishaw self-assigned this Apr 19, 2023
@oscgonfer oscgonfer merged commit 2682efd into master May 10, 2023
@oscgonfer
Copy link
Contributor

Thanks for spotting this!

@oscgonfer oscgonfer deleted the bugfix/failing-mqtt-tests branch May 10, 2023 08:59
@oscgonfer oscgonfer restored the bugfix/failing-mqtt-tests branch May 10, 2023 08:59
@timcowlishaw timcowlishaw deleted the bugfix/failing-mqtt-tests branch July 4, 2024 08:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants