ax(node): strip _WrongURL suffix from lethean test names
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:
parent
4f3141beb8
commit
8a899153ed
1 changed files with 3 additions and 3 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue