Skip to content

Commit

Permalink
remove integer guard
Browse files Browse the repository at this point in the history
  • Loading branch information
jessedrelick committed Aug 16, 2024
1 parent 12cfebe commit c9ce56c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/agens/job.ex
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ defmodule Agens.Job do
:end ->
GenServer.cast(self(), :end)

step_index when is_integer(step_index) ->
step_index ->
GenServer.cast(self(), {:step, step_index, message})
end
end
Expand Down
2 changes: 1 addition & 1 deletion test/agens/agent_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ defmodule Agens.AgentTest do
assert_receive {:tool_raw, {^job_name, 0}, %{}}
assert_receive {:tool_result, {^job_name, 0}, "TRUE"}
assert_receive {:step_result, {^job_name, 0}, "TRUE"}
assert_receive {:job_ended, :test_prompt_job, :complete}
assert_receive {:job_ended, ^job_name, :complete}
end
end
end

0 comments on commit c9ce56c

Please sign in to comment.