diff --git a/main_test.go b/main_test.go index 9dec77d9..39afb54c 100644 --- a/main_test.go +++ b/main_test.go @@ -386,6 +386,8 @@ func TestPublishRead(t *testing.T) { }) require.NoError(t, err) defer cnt1.close() + + time.Sleep(1 * time.Second) } time.Sleep(1 * time.Second) diff --git a/testimages/gstreamer/Dockerfile b/testimages/gstreamer/Dockerfile index 7fe8be39..3d813c16 100644 --- a/testimages/gstreamer/Dockerfile +++ b/testimages/gstreamer/Dockerfile @@ -1,5 +1,5 @@ ###################################### -FROM ubuntu:20.04 AS exitafterframe +FROM ubuntu:20.04 AS build RUN apt update && apt install -y --no-install-recommends \ pkg-config \ @@ -36,7 +36,7 @@ RUN apt update && apt install -y --no-install-recommends \ gstreamer1.0-libav \ && rm -rf /var/lib/apt/lists/* -COPY --from=exitafterframe /usr/lib/x86_64-linux-gnu/gstreamer-1.0/libexitafterframe.so /usr/lib/x86_64-linux-gnu/gstreamer-1.0/ +COPY --from=build /usr/lib/x86_64-linux-gnu/gstreamer-1.0/libexitafterframe.so /usr/lib/x86_64-linux-gnu/gstreamer-1.0/ COPY emptyvideo.ts /