[bug] pruner_test.exs fails on elixir < 1.14.0 #511
Labels
No labels
approved, awaiting change
bug
configuration
documentation
duplicate
enhancement
extremely low priority
feature request
Fix it yourself
help wanted
invalid
mastodon_api
needs docs
needs tests
not a bug
planned
pleroma_api
privacy
question
static_fe
triage
wontfix
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: AkkomaGang/akkoma#511
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Your setup
From source
Extra details
FreeBSD 13.1
Version
2023.03
PostgreSQL version
14.6
What were you trying to do?
mix test
What did you expect to happen?
All tests complete successfully.
What actually happened?
On FreeBSD 13.1 the standard elixir package is 1.13.4. There are several individual tests in pruner_test.exs that use the function syntax DateTime.add(-31 * 24, :hour), but it looks like the :hour syntax didn't come into elixir until 1.14.0.
Replacing the elixir package with the elixir-devel package (1.14.2) allowed the tests to pass.
Logs
No response
Severity
I can manage
Have you searched for this issue?
This is maybe a version requirement more than it's a bug, but I didn't see it documented anywhere that the new features required elixir >= 1.14. Maybe just note it in the release notes?
related #477
Probably should close this and #477 since #512 updates the minimum Elixir version to 1.14 and has been merged.
Closing because it's fixed, as described.