Skip to content
Merged

fix ci #4728

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ jobs:
elixirbase:
- "1.17.3-erlang-27.1-alpine-3.17.9"
- "1.17.3-erlang-25.0.4-alpine-3.17.9"
- "1.14.5-erlang-23.3.4.20-alpine-3.16.9"
- "1.15.6-erlang-24.3.4.9-alpine-3.20.9"
steps:
- uses: earthly/actions-setup@v1
- uses: actions/checkout@v3
Expand Down
11 changes: 4 additions & 7 deletions integration_test/cases/type.exs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ defmodule Ecto.Integration.TypeTest do
if Code.ensure_loaded?(Duration) do
@tag :duration_type
test "duration type" do
duration = %Duration{year: 1, month: 1, second: 1, microsecond: {100, 6}}
duration = %Duration{month: 13, second: 1, microsecond: {100, 6}}

struct = %Ecto.Integration.Duration{
dur: duration,
Expand All @@ -102,22 +102,19 @@ defmodule Ecto.Integration.TypeTest do

# `:field` option set to MONTH so it ignores all units lower than `:month`
assert persisted_duration.dur_with_fields == %Duration{
year: 1,
month: 1,
month: 13,
microsecond: {0, 6}
}

assert persisted_duration.dur_with_precision == %Duration{
year: 1,
month: 1,
month: 13,
second: 1,
microsecond: {100, 4}
}

# `:field` option is set to HOUR TO SECOND so it ignores all units lower than `:second`
assert persisted_duration.dur_with_fields_and_precision == %Duration{
year: 1,
month: 1,
month: 13,
second: 1,
microsecond: {0, 1}
}
Expand Down
Loading