Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion multinode/send_only_node.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ func (s *sendOnlyNode[CHAIN_ID, RPC]) RPC() RPC {
}

func (s *sendOnlyNode[CHAIN_ID, RPC]) String() string {
return fmt.Sprintf("(%s)%s:%s", Secondary.String(), s.name, s.uri.Redacted())
return fmt.Sprintf("(%s)%s:%s", Secondary.String(), s.name, shortenURL(&s.uri))
}

func (s *sendOnlyNode[CHAIN_ID, RPC]) setState(state nodeState) (changed bool) {
Expand Down
4 changes: 2 additions & 2 deletions multinode/send_only_node_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ func TestNewSendOnlyNode(t *testing.T) {
password := "pass"
u, err := url.Parse(fmt.Sprintf(urlFormat, password))
require.NoError(t, err)
redacted := fmt.Sprintf(urlFormat, "xxxxx")
shortened := shortenURL(u)
lggr := logger.Test(t)
name := "TestNewSendOnlyNode"
chainID := RandomID()
Expand All @@ -32,7 +32,7 @@ func TestNewSendOnlyNode(t *testing.T) {
assert.NotNil(t, node)

// Must contain name & url with redacted password
assert.Contains(t, node.String(), fmt.Sprintf("%s:%s", name, redacted))
assert.Contains(t, node.String(), fmt.Sprintf("%s:%s", name, shortened))
assert.Equal(t, node.ConfiguredChainID(), chainID)
}

Expand Down
Loading