Skip to content

Commit

Permalink
assert stream_deleted is sent when stream ends
Browse files Browse the repository at this point in the history
  • Loading branch information
lastcanal committed Oct 31, 2024
1 parent 726f791 commit 109f664
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/membrane_rtmp_plugin/rtmp_source_bin_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,11 @@ defmodule Membrane.RTMP.SourceBin.IntegrationTest do
assert_end_of_stream(pipeline, :audio_sink, :input)
assert_end_of_stream(pipeline, :video_sink, :input)

assert :ok = Task.await(ffmpeg_task)
assert_pipeline_notified(pipeline, :src, :stream_deleted)

# Cleanup
Testing.Pipeline.terminate(pipeline)
assert :ok = Task.await(ffmpeg_task)
end

test "SourceBin doesn't output anything if the client tries to connect to different app or stream key" do
Expand Down

0 comments on commit 109f664

Please sign in to comment.