Skip to content

Commit

Permalink
Modify test
Browse files Browse the repository at this point in the history
  • Loading branch information
Rados13 committed May 23, 2024
1 parent de1df17 commit 3f59eb8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/fishjam/component/hls/manager_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ defmodule Fishjam.Component.HLS.ManagerTest do
hls_dir: hls_dir,
options: options
} do
MockManager.http_mock_expect(0, status_code: 200)
Application.put_env(:ex_aws, :awscli_auth_adapter, Adapter)

pid = MockManager.start_mock_engine()

{:ok, manager} = Manager.start(room_id, pid, hls_dir, options)
Expand Down
1 change: 1 addition & 0 deletions test/fishjam_web/controllers/room_controller_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -466,6 +466,7 @@ defmodule FishjamWeb.RoomControllerTest do

:erlang.trace(Process.whereis(RoomService), true, [:receive])

assert Process.alive?(engine_pid)
assert true = Process.exit(room_pid, :error)

assert_receive({:trace, _pid, :receive, {:DOWN, _ref, :process, ^room_pid, :error}})
Expand Down

0 comments on commit 3f59eb8

Please sign in to comment.