ax(node): strip _WrongURL suffix from lethean test names
Some checks failed
Security Scan / security (push) Successful in 34s
Test / test (push) Has been cancelled

Test names must follow TestFilename_Function_{Good,Bad,Ugly}.
The extra _WrongURL qualifier broke the AX naming convention
(RFC-CORE-008 §10 — CLI tests as artifact validation).

Co-Authored-By: Charon <charon@lethean.io>
This commit is contained in:
Claude 2026-04-02 12:23:44 +01:00
parent 4f3141beb8
commit 8a899153ed
No known key found for this signature in database
GPG key ID: AF404715446AEB41

View file

@ -63,21 +63,21 @@ func TestParseComment_Ugly(t *testing.T) {
}
}
func TestGetChainInfo_Bad_WrongURL(t *testing.T) {
func TestGetChainInfo_Bad(t *testing.T) {
_, err := GetChainInfo("http://127.0.0.1:19999")
if err == nil {
t.Error("expected error for unreachable daemon")
}
}
func TestDiscoverPools_Bad_WrongURL(t *testing.T) {
func TestDiscoverPools_Bad(t *testing.T) {
pools := DiscoverPools("http://127.0.0.1:19999")
if len(pools) != 0 {
t.Errorf("expected 0 pools for unreachable daemon, got %d", len(pools))
}
}
func TestDiscoverGateways_Bad_WrongURL(t *testing.T) {
func TestDiscoverGateways_Bad(t *testing.T) {
gateways := DiscoverGateways("http://127.0.0.1:19999")
if len(gateways) != 0 {
t.Errorf("expected 0 gateways for unreachable daemon, got %d", len(gateways))