From e6ad65b45f22b7c411f0fc35aebeea0894e21246 Mon Sep 17 00:00:00 2001 From: Jamil Bou Kheir Date: Sat, 10 Aug 2024 09:25:22 -0700 Subject: [PATCH] fix test --- test/probe/runs_test.exs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/probe/runs_test.exs b/test/probe/runs_test.exs index ab6d1dc..3edbef1 100644 --- a/test/probe/runs_test.exs +++ b/test/probe/runs_test.exs @@ -97,7 +97,7 @@ defmodule Probe.RunsRun do end describe "cancel_stale_runs!/0" do - test "cancels runs that started more than 15 seconds ago" do + test "cancels runs that started more than 60 seconds ago" do run = Fixtures.Runs.start_run() subscribe_to_run_updates(run) @@ -107,7 +107,7 @@ defmodule Probe.RunsRun do refute_received {:canceled, ^run} run - |> Ecto.Changeset.change(started_at: DateTime.utc_now() |> DateTime.add(-20, :second)) + |> Ecto.Changeset.change(started_at: DateTime.utc_now() |> DateTime.add(-70, :second)) |> Repo.update!() assert cancel_stale_runs!() == :ok