//go:build e2e

package testkit

import (
	"testing"
	"time"
)

func TestAllChannelSlugFromEnv(t *testing.T) {
	t.Setenv("AGENTTEAM_E2E_ALL_CHANNEL_SLUG", "general")
	if got := AllChannelSlug(); got != "general" {
		t.Fatalf("slug: got %q want general", got)
	}
}

func TestAPITimeoutFromEnv(t *testing.T) {
	t.Setenv("AGENTTEAM_E2E_API_TIMEOUT", "45s")
	if got := APITimeout(); got != 45*time.Second {
		t.Fatalf("timeout: got %v want 45s", got)
	}
}

func TestMessageHistoryLimitFromEnv(t *testing.T) {
	t.Setenv("AGENTTEAM_E2E_MESSAGE_LIST_LIMIT", "100")
	if got := MessageHistoryLimit(); got != 100 {
		t.Fatalf("limit: got %d want 100", got)
	}
}
