diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 62ed2aa102..e90caead3f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 diff --git a/integration_test/cases/type.exs b/integration_test/cases/type.exs index 47d08b0036..e40f1959b4 100644 --- a/integration_test/cases/type.exs +++ b/integration_test/cases/type.exs @@ -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, @@ -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} }