Skip to content

Commit

Permalink
Update gethclient_test.go
Browse files Browse the repository at this point in the history
  • Loading branch information
fjl committed Oct 12, 2022
1 parent be05027 commit 1e7d5da
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ethclient/gethclient/gethclient_test.go
Expand Up @@ -123,7 +123,7 @@ func TestGethClient(t *testing.T) {
func(t *testing.T) { testSetHead(t, client) },
}, {
"TestSubscribePendingTxHashes",
func(t *testing.T) { testSubscribePendingTransaction(t, client) },
func(t *testing.T) { testSubscribePendingTransactions(t, client) },
}, {
"TestSubscribePendingTxs",
func(t *testing.T) { testSubscribeFullPendingTransactions(t, client) },
Expand Down Expand Up @@ -272,12 +272,12 @@ func testSetHead(t *testing.T, client *rpc.Client) {
}
}

func testSubscribePendingTransaction(t *testing.T, client *rpc.Client) {
func testSubscribePendingTransactions(t *testing.T, client *rpc.Client) {
ec := New(client)
ethcl := ethclient.NewClient(client)
// Subscribe to Transactions
ch := make(chan common.Hash)
ec.SubscribePendingTransaction(context.Background(), ch)
ec.SubscribePendingTransactions(context.Background(), ch)
// Send a transaction
chainID, err := ethcl.ChainID(context.Background())
if err != nil {
Expand Down

0 comments on commit 1e7d5da

Please sign in to comment.