Fix expires label

This commit is contained in:
2026-09-13 09:14:27 +02:00
parent b24467c37d
commit ad611e9652
3 changed files with 12 additions and 7 deletions
+2 -2
View File
@@ -78,8 +78,8 @@ func TestFormatRoundTrips(t *testing.T) {
if got, err := ParseDuration(FormatDuration(d)); err != nil || got != d {
t.Errorf("FormatDuration(%s) = %q, which parses back to %s (%v)", d, FormatDuration(d), got, err)
}
// FormatLifetime reaches the upload form as the expiry placeholder, so
// what it prints has to be something a caller could type back.
// FormatLifetime is shown next to the field a caller types into, so
// what it prints has to be something ParseDuration would accept.
if got, err := ParseDuration(FormatLifetime(d)); err != nil || got != d {
t.Errorf("FormatLifetime(%s) = %q, which parses back to %s (%v)", d, FormatLifetime(d), got, err)
}