Skip to content

Linger is An Open-Source Personal Agent That Runs Fully on Your PC. We aim to break Big Tech’s grip on AI by bringing powerful local AI to everyday computers through efficient model–harness co-design, so everyone can run their own.

429 B
Raw Blame
package config

import (
	"testing"
	"time"
)

func TestShutdownBudgetConfiguration(t *testing.T) {
	cfg := Default()
	if cfg.ShutdownTimeout != 20*time.Second || cfg.ShutdownHTTPTimeout != 10*time.Second {
		t.Fatal("unexpected shutdown defaults")
	}
	cfg.DatabaseURL = "postgres://test/test"
	cfg.ShutdownHTTPTimeout = cfg.ShutdownTimeout
	if err := validate(&cfg); err == nil {
		t.Fatal("budget leaves no cleanup time")
	}
}