test: the file-name test's later backup is later in UTC too
release / govulncheck (push) Successful in 22s
release / web (push) Successful in 1m33s
release / go (push) Successful in 1m49s
release / android (push) Successful in 4m59s
release / Build signed APK (push) Successful in 5m1s
release / integration (push) Successful in 5m27s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Build + push container image (push) Successful in 14s
release / Verify release artifacts (tag releases only) (push) Skipped

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-02 14:01:31 -05:00
co-authored by Claude Opus 5.5
parent e11011e977
commit faf19ef67b
+5 -1
View File
@@ -172,7 +172,11 @@ func TestAFailedWriteFileLeavesNothingBehind(t *testing.T) {
func TestFileNamesSortByTimeAndAreRecognised(t *testing.T) {
earlier := FileName(time.Date(2026, 1, 9, 23, 0, 0, 0, time.UTC))
later := FileName(time.Date(2026, 1, 10, 1, 0, 0, 0, time.FixedZone("x", 5*3600)))
// 01:00 at UTC-5 is 06:00 UTC: the name is in UTC, not the clock's zone.
later := FileName(time.Date(2026, 1, 10, 1, 0, 0, 0, time.FixedZone("x", -5*3600)))
if later != "minstrel-20260110T060000Z.tar" {
t.Errorf("name = %s, want it in UTC", later)
}
if earlier >= later {
t.Errorf("%s does not sort before %s", earlier, later)
}