github.com/nspcc-dev/neo-go@v0.105.2-0.20240517133400-6be757af3eba/pkg/rpcclient/client_test.go (about)

     1  package rpcclient
     2  
     3  import (
     4  	"net/url"
     5  	"testing"
     6  
     7  	"github.com/stretchr/testify/require"
     8  )
     9  
    10  func TestGetEndpoint(t *testing.T) {
    11  	host := "http://localhost:1234"
    12  	u, err := url.Parse(host)
    13  	require.NoError(t, err)
    14  	client := Client{
    15  		endpoint: u,
    16  	}
    17  	require.Equal(t, host, client.Endpoint())
    18  }