From 8a899153eda108c292285656b70956afbeeaf624 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 2 Apr 2026 12:23:44 +0100 Subject: [PATCH] ax(node): strip _WrongURL suffix from lethean test names MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- pkg/node/lethean_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/node/lethean_test.go b/pkg/node/lethean_test.go index 835d049..cf0aca9 100644 --- a/pkg/node/lethean_test.go +++ b/pkg/node/lethean_test.go @@ -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))