From 518758c895f598c439655698420dd1bcc5c04e1f Mon Sep 17 00:00:00 2001 From: Greg Rychlewski Date: Mon, 18 May 2026 11:38:20 -0400 Subject: [PATCH 1/2] fix ci --- .github/workflows/ci.yml | 2 +- integration_test/cases/type.exs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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..faba003bb2 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, From 575aa00887bc3e81f301402af94ca7f2f77ed077 Mon Sep 17 00:00:00 2001 From: Greg Rychlewski Date: Mon, 18 May 2026 12:10:25 -0400 Subject: [PATCH 2/2] Update type.exs --- integration_test/cases/type.exs | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/integration_test/cases/type.exs b/integration_test/cases/type.exs index faba003bb2..e40f1959b4 100644 --- a/integration_test/cases/type.exs +++ b/integration_test/cases/type.exs @@ -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} }