0g-chain/client/grpc/client_test.go
0g-wh 206c3dcad6 rebase to kava cosmos 0.47 upgrade
rename

rename

tidy

clean code
2024-08-03 14:25:51 +08:00

16 lines
364 B
Go

package grpc_test
import (
"testing"
"github.com/0glabs/0g-chain/client/grpc"
"github.com/stretchr/testify/require"
)
func TestNewClient_InvalidEndpoint(t *testing.T) {
_, err := grpc.NewClient("invalid-url")
require.ErrorContains(t, err, "unknown grpc url scheme")
_, err = grpc.NewClient("")
require.ErrorContains(t, err, "grpc url cannot be empty")
}