From 7167b4f7289fb7b0f660dc9cc2d08e31355d282c Mon Sep 17 00:00:00 2001 From: Malte Rosenbjerg Date: Sat, 9 May 2020 20:42:20 +0200 Subject: [PATCH] Remove timeouts Former-commit-id: 8787ccaa8d22a54125adc0f7125f479a88244b43 --- FFMpegCore.Test/VideoTest.cs | 56 ++++++++++++++++++------------------ 1 file changed, 28 insertions(+), 28 deletions(-) diff --git a/FFMpegCore.Test/VideoTest.cs b/FFMpegCore.Test/VideoTest.cs index 5ff5da9..53024ed 100644 --- a/FFMpegCore.Test/VideoTest.cs +++ b/FFMpegCore.Test/VideoTest.cs @@ -270,34 +270,34 @@ public void ConvertFromPipe(VideoType type, ArgumentContainer container, PixelFo } - [TestMethod, Timeout(15000)] + [TestMethod] public void Video_ToMP4() { Convert(VideoType.Mp4); } - [TestMethod, Timeout(15000)] + [TestMethod] public void Video_ToMP4_Args() { var container = new ArgumentContainer { new VideoCodecArgument(VideoCodec.LibX264) }; Convert(VideoType.Mp4, container); } - [TestMethod, Timeout(15000)] + [TestMethod] public void Video_ToMP4_Args_Pipe() { var container = new ArgumentContainer { new VideoCodecArgument(VideoCodec.LibX264) }; ConvertFromPipe(VideoType.Mp4, container, PixelFormat.Format24bppRgb); } - [TestMethod, Timeout(15000)] + [TestMethod] public void Video_ToMP4_Args_StreamPipe() { var container = new ArgumentContainer { new VideoCodecArgument(VideoCodec.LibX264) }; ConvertFromStreamPipe(VideoType.Mp4, container); } - [TestMethod, Timeout(15000)] + [TestMethod] public void Video_ToMP4_Args_StreamOutputPipe_Async_Failure() { Assert.ThrowsException(() => @@ -319,7 +319,7 @@ public void Video_ToMP4_Args_StreamOutputPipe_Async_Failure() }); } - [TestMethod, Timeout(15000)] + [TestMethod] public void Video_ToMP4_Args_StreamOutputPipe_Failure() { Assert.ThrowsException(() => @@ -333,7 +333,7 @@ public void Video_ToMP4_Args_StreamOutputPipe_Failure() } - [TestMethod, Timeout(15000)] + [TestMethod] public void Video_ToMP4_Args_StreamOutputPipe_Async() { using (var ms = new MemoryStream()) @@ -352,7 +352,7 @@ public void Video_ToMP4_Args_StreamOutputPipe_Async() } } - [TestMethod, Timeout(15000)] + [TestMethod] public void Video_ToMP4_Args_StreamOutputPipe() { var container = new ArgumentContainer @@ -363,13 +363,13 @@ public void Video_ToMP4_Args_StreamOutputPipe() ConvertToStreamPipe(VideoType.Mp4, container); } - [TestMethod, Timeout(15000)] + [TestMethod] public void Video_ToTS() { Convert(VideoType.Ts); } - [TestMethod, Timeout(15000)] + [TestMethod] public void Video_ToTS_Args() { var container = new ArgumentContainer @@ -381,7 +381,7 @@ public void Video_ToTS_Args() Convert(VideoType.Ts, container); } - [TestMethod, Timeout(15000)] + [TestMethod] public void Video_ToTS_Args_Pipe() { var container = new ArgumentContainer @@ -391,13 +391,13 @@ public void Video_ToTS_Args_Pipe() ConvertFromPipe(VideoType.Ts, container, PixelFormat.Format32bppArgb); } - [TestMethod, Timeout(15000)] + [TestMethod] public void Video_ToOGV_Resize() { Convert(VideoType.Ogv, true, VideoSize.Ed); } - [TestMethod, Timeout(15000)] + [TestMethod] public void Video_ToOGV_Resize_Args() { var container = new ArgumentContainer @@ -408,7 +408,7 @@ public void Video_ToOGV_Resize_Args() Convert(VideoType.Ogv, container); } - [TestMethod, Timeout(15000)] + [TestMethod] public void Video_ToOGV_Resize_Args_Pipe() { var container = new ArgumentContainer @@ -419,13 +419,13 @@ public void Video_ToOGV_Resize_Args_Pipe() ConvertFromPipe(VideoType.Ogv, container, PixelFormat.Format48bppRgb); } - [TestMethod, Timeout(15000)] + [TestMethod] public void Video_ToMP4_Resize() { Convert(VideoType.Mp4, true, VideoSize.Ed); } - [TestMethod, Timeout(15000)] + [TestMethod] public void Video_ToMP4_Resize_Args() { var container = new ArgumentContainer @@ -436,7 +436,7 @@ public void Video_ToMP4_Resize_Args() Convert(VideoType.Mp4, container); } - [TestMethod, Timeout(15000)] + [TestMethod] public void Video_ToMP4_Resize_Args_Pipe() { var container = new ArgumentContainer @@ -452,25 +452,25 @@ public void Video_ToOGV() Convert(VideoType.Ogv); } - [TestMethod, Timeout(15000)] + [TestMethod] public void Video_ToMP4_MultiThread() { Convert(VideoType.Mp4, true); } - [TestMethod, Timeout(15000)] + [TestMethod] public void Video_ToTS_MultiThread() { Convert(VideoType.Ts, true); } - [TestMethod, Timeout(15000)] + [TestMethod] public void Video_ToOGV_MultiThread() { Convert(VideoType.Ogv, true); } - [TestMethod, Timeout(15000)] + [TestMethod] public void Video_Snapshot() { var output = Input.OutputLocation(ImageType.Png); @@ -491,7 +491,7 @@ public void Video_Snapshot() } } - [TestMethod, Timeout(15000)] + [TestMethod] public void Video_Snapshot_PersistSnapshot() { var output = Input.OutputLocation(ImageType.Png); @@ -512,7 +512,7 @@ public void Video_Snapshot_PersistSnapshot() } } - [TestMethod, Timeout(15000)] + [TestMethod] public void Video_Join() { var output = Input.OutputLocation(VideoType.Mp4); @@ -544,7 +544,7 @@ public void Video_Join() } } - [TestMethod, Timeout(15000)] + [TestMethod] public void Video_Join_Image_Sequence() { try @@ -580,7 +580,7 @@ public void Video_Join_Image_Sequence() } } - [TestMethod, Timeout(15000)] + [TestMethod] public void Video_With_Only_Audio_Should_Extract_Metadata() { var video = VideoInfo.FromFileInfo(VideoLibrary.LocalVideoAudioOnly); @@ -590,7 +590,7 @@ public void Video_With_Only_Audio_Should_Extract_Metadata() Assert.AreEqual(1.25, video.Size); } - [TestMethod, Timeout(15000)] + [TestMethod] public void Video_Duration() { var video = VideoInfo.FromFileInfo(VideoLibrary.LocalVideo); @@ -622,7 +622,7 @@ public void Video_Duration() } } - [TestMethod, Timeout(15000)] + [TestMethod] public void Video_UpdatesProgress() { var output = Input.OutputLocation(VideoType.Mp4); @@ -653,7 +653,7 @@ public void Video_UpdatesProgress() } } - [TestMethod, Timeout(15000)] + [TestMethod] public void Video_TranscodeInMemory() { using (var resStream = new MemoryStream())