Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
jamilbk committed Aug 10, 2024
1 parent e995039 commit e6ad65b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/probe/runs_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand All @@ -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
Expand Down

0 comments on commit e6ad65b

Please sign in to comment.