Skip to content

Open-source LLM knowledge platform: turn raw documents into a queryable RAG, an autonomous reasoning agent, and a self-maintaining Wiki.

364 B
Raw Blame
package runtime

import (
	"testing"
	"time"
)

func TestMarkServerStartedAndUptime(t *testing.T) {
	MarkServerStarted()
	boot := ServerStartedAt()
	if boot.IsZero() {
		t.Fatal("ServerStartedAt should be set after MarkServerStarted")
	}
	time.Sleep(2 * time.Millisecond)
	if got := ServerUptime(); got <= 0 {
		t.Fatalf("ServerUptime() = %v, want > 0", got)
	}
}