2025-10-03 14:28:14 +02:00

24 lines
400 B
Go

package codex
import (
"testing"
)
func TestDebug(t *testing.T) {
codex := newCodexNode(t)
info, err := codex.Debug()
if err != nil {
t.Fatalf("Debug call failed: %v", err)
}
if info.ID == "" {
t.Error("Debug info ID is empty")
}
if info.Spr == "" {
t.Error("Debug info Spr is empty")
}
if len(info.AnnounceAddresses) == 0 {
t.Error("Debug info AnnounceAddresses is empty")
}
}