Files
overlord/Overlord-Client/cmd/agent/main_test.go
T

18 lines
415 B
Go
Raw Normal View History

2026-03-05 00:04:26 -06:00
package main
import (
"testing"
"time"
rt "overlord-client/cmd/agent/runtime"
)
func TestMinDuration(t *testing.T) {
if got := rt.MinDuration(1*time.Second, 5*time.Second); got != 1*time.Second {
t.Fatalf("expected shorter duration returned, got %s", got)
}
if got := rt.MinDuration(5*time.Second, 1*time.Second); got != 1*time.Second {
t.Fatalf("expected shorter duration returned, got %s", got)
}
}