mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-12-23 13:41:37 +00:00
19 lines
297 B
Go
19 lines
297 B
Go
|
package rpcclient
|
||
|
|
||
|
import (
|
||
|
"net/url"
|
||
|
"testing"
|
||
|
|
||
|
"github.com/stretchr/testify/require"
|
||
|
)
|
||
|
|
||
|
func TestGetEndpoint(t *testing.T) {
|
||
|
host := "http://localhost:1234"
|
||
|
u, err := url.Parse(host)
|
||
|
require.NoError(t, err)
|
||
|
client := Client{
|
||
|
endpoint: u,
|
||
|
}
|
||
|
require.Equal(t, host, client.Endpoint())
|
||
|
}
|