feat: improve recording recovery and upload workflow
This commit is contained in:
@@ -103,6 +103,16 @@ public sealed class FfmpegFailureClassificationTests
|
||||
FfmpegService.IsMeaningfulUnexpectedExitArtifact(durationSeconds, fileSizeBytes));
|
||||
}
|
||||
|
||||
[Theory]
|
||||
[InlineData(59, false)]
|
||||
[InlineData(60, true)]
|
||||
[InlineData(3600, true)]
|
||||
public void StableRuntime_ResetsInSessionRecoveryBudget(int seconds, bool expected)
|
||||
{
|
||||
var now = DateTimeOffset.Parse("2026-08-04T20:00:00+08:00");
|
||||
Assert.Equal(expected, FfmpegService.CanResetInSessionRetryBudget(now.AddSeconds(-seconds), now));
|
||||
}
|
||||
|
||||
[Theory]
|
||||
[InlineData("https://example.test/live.flv", "flv", true)]
|
||||
[InlineData("https://example.test/live.m3u8", "hls", false)]
|
||||
|
||||
Reference in New Issue
Block a user