You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
356 B

  1. package eth
  2. import (
  3. "testing"
  4. "github.com/ethereum/go-ethereum/ethclient"
  5. "github.com/stretchr/testify/require"
  6. )
  7. func TestClientInterface(t *testing.T) {
  8. ethClient, err := ethclient.Dial(ethClientDialURL)
  9. require.Nil(t, err)
  10. var c ClientInterface
  11. client, _ := NewClient(ethClient, nil, nil, &ClientConfig{})
  12. c = client
  13. require.NotNil(t, c)
  14. }