mirror of
https://github.com/logos-storage/logos-storage-go-bindings.git
synced 2026-01-02 13:33:10 +00:00
24 lines
400 B
Go
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")
|
|
}
|
|
}
|