mirror of
https://github.com/rosenbjerg/FFMpegCore.git
synced 2024-11-10 08:34:12 +01:00
Add timeouts
This commit is contained in:
parent
a7981f2886
commit
d0293598ae
1 changed files with 5 additions and 5 deletions
|
@ -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<FFMpegException>(async () =>
|
||||
|
@ -313,7 +313,7 @@ await FFMpegArguments
|
|||
});
|
||||
}
|
||||
|
||||
// [TestMethod, Timeout(10000)]
|
||||
[TestMethod, Timeout(10000)]
|
||||
public void Video_ToMP4_Args_StreamOutputPipe_Failure()
|
||||
{
|
||||
Assert.ThrowsException<FFMpegException>(() => 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();
|
||||
|
|
Loading…
Reference in a new issue