썸네일 API 테스트를 호스트 ffmpeg 의존 제거(ServerOptions.FfmpegPath 주입, 가짜 러너 .jpg 출력만 기록) — PATH 에서 ffmpeg 사라져도 결정적 GREEN
This commit is contained in:
parent
c4dba66c15
commit
5a0ce730b2
3 changed files with 6 additions and 2 deletions
|
|
@ -167,7 +167,8 @@ public class RemoteServerE2ETests : IDisposable
|
|||
{
|
||||
Behavior = (spec, _, _) =>
|
||||
{
|
||||
File.WriteAllBytes(spec.Args[^1], new byte[] { 0xFF, 0xD8, 0xFF, 0xE0, 0x01 });
|
||||
if (spec.Args[^1].EndsWith(".jpg", StringComparison.OrdinalIgnoreCase)) // 해상도 프로브(미디어 경로)는 미오염
|
||||
File.WriteAllBytes(spec.Args[^1], new byte[] { 0xFF, 0xD8, 0xFF, 0xE0, 0x01 });
|
||||
return Task.FromResult(new VideoDownloader.Core.Platform.ProcessResult(0, "", ""));
|
||||
},
|
||||
};
|
||||
|
|
@ -177,6 +178,7 @@ public class RemoteServerE2ETests : IDisposable
|
|||
Port = 0, Token = "thumb-token", LibraryFolder = _libDir,
|
||||
Queue = new FakeQueue(),
|
||||
Thumbnailer = new Thumbnailer(fake),
|
||||
FfmpegPath = "ffmpeg", // 호스트 ffmpeg 무관(가짜 러너가 프로세스를 대신함)
|
||||
});
|
||||
using var http = new HttpClient { BaseAddress = new Uri($"http://127.0.0.1:{server.Port}") };
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue