From 88a099523d4dd3ec552a6e8be8ebac734e973813 Mon Sep 17 00:00:00 2001 From: Malte Rosenbjerg Date: Sun, 25 Oct 2020 17:26:43 +0100 Subject: [PATCH] Add more timeout attributes Former-commit-id: 2bacf6232b4e5b795b1392139790727162f57fbc --- 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 a2a3bea..3a09f0c 100644 --- a/FFMpegCore.Test/VideoTest.cs +++ b/FFMpegCore.Test/VideoTest.cs @@ -320,7 +320,7 @@ public void Video_ToMP4_Args_StreamOutputPipe_Failure() } - [TestMethod] + [TestMethod, Timeout(10000)] public void Video_ToMP4_Args_StreamOutputPipe_Async() { using var ms = new MemoryStream(); @@ -348,7 +348,7 @@ await FFMpegArguments.FromFileInput(VideoLibrary.LocalVideo) File.Delete("temporary.mp4"); } - [TestMethod] + [TestMethod, Timeout(10000)] public void Video_ToMP4_Args_StreamOutputPipe() { ConvertToStreamPipe(new VideoCodecArgument(VideoCodec.LibX264), new ForceFormatArgument("matroska")); @@ -369,7 +369,7 @@ public void Video_ToTS_Args() new ForceFormatArgument(VideoType.MpegTs)); } - [DataTestMethod] + [DataTestMethod, Timeout(10000)] [DataRow(System.Drawing.Imaging.PixelFormat.Format24bppRgb)] [DataRow(System.Drawing.Imaging.PixelFormat.Format32bppArgb)] // [DataRow(PixelFormat.Format48bppRgb)] @@ -390,7 +390,7 @@ public void Video_ToOGV_Resize_Args() Convert(VideoType.Ogv, new ScaleArgument(VideoSize.Ed), new VideoCodecArgument(VideoCodec.LibTheora)); } - [DataTestMethod] + [DataTestMethod, Timeout(10000)] [DataRow(System.Drawing.Imaging.PixelFormat.Format24bppRgb)] [DataRow(System.Drawing.Imaging.PixelFormat.Format32bppArgb)] // [DataRow(PixelFormat.Format48bppRgb)] @@ -411,7 +411,7 @@ public void Video_ToMP4_Resize_Args() Convert(VideoType.Mp4, new ScaleArgument(VideoSize.Ld), new VideoCodecArgument(VideoCodec.LibX264)); } - [DataTestMethod] + [DataTestMethod, Timeout(10000)] [DataRow(System.Drawing.Imaging.PixelFormat.Format24bppRgb)] [DataRow(System.Drawing.Imaging.PixelFormat.Format32bppArgb)] // [DataRow(PixelFormat.Format48bppRgb)]