fix(verify): ceil scheduled task runAtLocal to next minute
Memind CI / Test, build, and release guards (push) Failing after 2m45s
Memind CI / Test, build, and release guards (push) Failing after 2m45s
Avoid flaky verify failures when truncating sub-minute offsets into the past. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -50,7 +50,16 @@ function parseArgs(argv) {
|
||||
|
||||
function formatRunAtLocal(epochMs, timezone = tz) {
|
||||
const parts = getLocalParts(epochMs, timezone);
|
||||
return `${parts.year}-${String(parts.month).padStart(2, '0')}-${String(parts.day).padStart(2, '0')} ${String(parts.hour).padStart(2, '0')}:${String(parts.minute).padStart(2, '0')}`;
|
||||
let minute = parts.minute;
|
||||
let hour = parts.hour;
|
||||
if (parts.second > 0) {
|
||||
minute += 1;
|
||||
if (minute >= 60) {
|
||||
minute = 0;
|
||||
hour += 1;
|
||||
}
|
||||
}
|
||||
return `${parts.year}-${String(parts.month).padStart(2, '0')}-${String(parts.day).padStart(2, '0')} ${String(hour).padStart(2, '0')}:${String(minute).padStart(2, '0')}`;
|
||||
}
|
||||
|
||||
function testIntentLayer() {
|
||||
|
||||
Reference in New Issue
Block a user