From 98486268a291faab5fcd576f7004269b802ce9d4 Mon Sep 17 00:00:00 2001 From: Malte Rosenbjerg Date: Sun, 25 Oct 2020 17:18:40 +0100 Subject: [PATCH] Add timeouts Former-commit-id: d0293598aecdbd9a2dd8353dd5fef996c7b61583 --- FFMpegCore.Test/VideoTest.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/FFMpegCore.Test/VideoTest.cs b/FFMpegCore.Test/VideoTest.cs index 41899c6..a2a3bea 100644 --- a/FFMpegCore.Test/VideoTest.cs +++ b/FFMpegCore.Test/VideoTest.cs @@ -293,13 +293,13 @@ public void Video_ToMP4_Args_Pipe(System.Drawing.Imaging.PixelFormat pixelFormat ConvertFromPipe(VideoType.Mp4, pixelFormat, new VideoCodecArgument(VideoCodec.LibX264)); } - [TestMethod] + [TestMethod, Timeout(10000)] public void Video_ToMP4_Args_StreamPipe() { ConvertFromStreamPipe(VideoType.Mp4, new VideoCodecArgument(VideoCodec.LibX264)); } - // [TestMethod, Timeout(10000)] + [TestMethod, Timeout(10000)] public async Task Video_ToMP4_Args_StreamOutputPipe_Async_Failure() { await Assert.ThrowsExceptionAsync(async () => @@ -313,7 +313,7 @@ await FFMpegArguments }); } - // [TestMethod, Timeout(10000)] + [TestMethod, Timeout(10000)] public void Video_ToMP4_Args_StreamOutputPipe_Failure() { Assert.ThrowsException(() => ConvertToStreamPipe(new ForceFormatArgument("mkv"))); @@ -633,7 +633,7 @@ public void Video_UpdatesProgress() } } - [TestMethod] + [TestMethod, Timeout(10000)] public void Video_TranscodeInMemory() { using var resStream = new MemoryStream(); @@ -653,7 +653,7 @@ public void Video_TranscodeInMemory() Assert.AreEqual(vi.PrimaryVideoStream.Height, 128); } - [TestMethod] + [TestMethod, Timeout(10000)] public async Task Video_Cancel_Async() { await using var resStream = new MemoryStream();