Media build part 2 (unreleased): drive wiring in every app (R-1024/R-1037), old-install repair (R-1047), drive events notice + real restart now/later + stream check, file browser lets go of dead/removed drives and recreates on return (R-1038), safe removal keeps the drive (R-1044), Plex claim on the running server + probe accept (R-1028/R-1045)
gates / gates (push) Successful in 45s
gates / gates (push) Successful in 45s
Claude-Session: https://claude.ai/code/session_0159rPz1ZhFKsS53msqPYxtS
This commit is contained in:
1 parent
78c894234c
commit
f580d88a14
46 files changed
+3700
-8
No files matched your search
@@ -0,0 +1,20 @@
|
||||
package web
|
||||
|
||||
import (
|
||||
"testing"
|
||||
"time"
|
||||
)
|
||||
|
||||
// „Later" is tonight 03:30 Budapest time — or tomorrow's when it is already past 03:30.
|
||||
func TestNextMediaLater(t *testing.T) {
|
||||
loc, _ := time.LoadLocation("Europe/Budapest")
|
||||
for now, want := range map[time.Time]string{
|
||||
time.Date(2026, 10, 15, 21, 0, 0, 0, loc): "2026-10-16 03:30",
|
||||
time.Date(2026, 10, 15, 2, 0, 0, 0, loc): "2026-10-15 03:30",
|
||||
time.Date(2026, 10, 15, 3, 30, 0, 0, loc): "2026-10-16 03:30",
|
||||
} {
|
||||
if got := nextMediaLater(now).Format("2006-01-02 15:04"); got != want {
|
||||
t.Errorf("now %s: later = %s, want %s", now.Format(time.RFC3339), got, want)
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user