add delay before gstreamer tests

This commit is contained in:
aler9 2020-12-17 13:35:50 +01:00
parent 6bc240daf2
commit cea8fe358b
2 changed files with 4 additions and 2 deletions

View File

@ -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)

View File

@ -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 /