-
Notifications
You must be signed in to change notification settings - Fork 13
Send update_track_metadata also for pending subscriptions #237
Send update_track_metadata also for pending subscriptions #237
Conversation
@@ -101,8 +102,11 @@ defmodule Membrane.RTC.EngineTest do | |||
) | |||
|
|||
assert_receive {:track_metadata_updated, %Track{id: ^track_id, metadata: "new-metadata"}} | |||
|
|||
:ok = Engine.terminate(rtc_engine) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's put this in on_exit
as assert :ok == Engine.terminate(rtc_engine, blocking?: true)
@@ -90,6 +90,7 @@ defmodule Membrane.RTC.EngineTest do | |||
describe ":update_track_metadata" do | |||
setup :setup_for_metadata_tests | |||
|
|||
@tag :debug |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can be removed
@@ -19,8 +19,6 @@ defmodule Membrane.RTC.HLSEndpointTest do | |||
|
|||
Engine.register(pid, self()) | |||
|
|||
on_exit(fn -> Engine.terminate(pid, blocking?: true) end) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
on_exit(fn -> Engine.terminate(pid, blocking?: true) end) | |
on_exit(fn -> assert :ok == Engine.terminate(pid, blocking?: true) end) |
Engine.message_endpoint( | ||
rtc_engine, | ||
"track-endpoint", | ||
{:execute_actions, [notify: {:track_ready, track.id, hd(track.variants), track.encoding}]} | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you create a separate story in Jira for adding tests for track_ready?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Codecov Report
@@ Coverage Diff @@
## master #237 +/- ##
==========================================
- Coverage 57.63% 57.07% -0.56%
==========================================
Files 38 35 -3
Lines 1787 1589 -198
==========================================
- Hits 1030 907 -123
+ Misses 757 682 -75
Continue to review full report at Codecov.
|
4058601
to
2d40e63
Compare
bdf5485
to
7647c01
Compare
No description provided.