Fix flaky transcription duration assertion in CI.
CI / test (push) Successful in 20s
CI / build-and-push (push) Successful in 38s
CI / deploy (push) Successful in 9s

Use integer timestamps for duration and pin the test clock to a whole second so SQLite round-trips stay stable.
This commit is contained in:
ben
2026-08-13 00:49:53 +02:00
parent b3fb74fb1b
commit 1877fee258
2 changed files with 6 additions and 2 deletions
+1 -1
View File
@@ -434,7 +434,7 @@ class Recording extends Model
$startedAt = $this->transcription_started_at;
$durationSeconds = $startedAt === null
? null
: max(0, (int) round($startedAt->diffInSeconds($finishedAt)));
: max(0, $finishedAt->getTimestamp() - $startedAt->getTimestamp());
$this->forceFill([
'transcript' => $text,