-
Notifications
You must be signed in to change notification settings - Fork 754
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
DateTime.from_iso8601 returns unexpected tuple #4260
Comments
I suspect (but haven't checked) the reason this didn't cause the tests to fail is because the errors occurred in another process, not the test process. Which is somewhat unfortunate. |
sorry for introducing this issue, not enough elixir experience |
Actually, I got a failed test due to this just now: https://github.com/teslamate-org/teslamate/actions/runs/11444547180/job/31839926194?pr=4277#step:6:195 |
no error anymore 🤔is that code change correct ? https://github.com/teslamate-org/teslamate/actions/runs/11447028841/job/31847674910 |
@JakobLichterfeld - error has already been logged in this run, but test completed successfully https://github.com/teslamate-org/teslamate/actions/runs/11443404821/job/31836224603 |
Yeah, assume the same as Brian:
|
teslamate/lib/teslamate/log.ex
Lines 176 to 185 in ad34131
If you look at the logs, there was is scary looking error that isn't generating a test failure:
Problem is DateTime.from_iso8601 returns a tuple, and could in theory fail. Sigh. Wish Elixir had strong type checking...
In actual practice, this function call probably I think can't fail, the value is constant.
The text was updated successfully, but these errors were encountered: