Skip to content

Commit

Permalink
Revert "ethclient: ensure the close of canceled context (ethereum#28349
Browse files Browse the repository at this point in the history
…)"

This reverts commit 789c18d.
  • Loading branch information
devopsbo3 authored Nov 10, 2023
1 parent 3577d7f commit 7f09a1e
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions ethclient/ethclient_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,6 @@ func testTransactionInBlockInterrupted(t *testing.T, client *rpc.Client) {
// Test tx in block interrupted.
ctx, cancel := context.WithCancel(context.Background())
cancel()
<-ctx.Done() // Ensure the close of the Done channel
tx, err := ec.TransactionInBlock(ctx, block.Hash(), 0)
if tx != nil {
t.Fatal("transaction should be nil")
Expand Down Expand Up @@ -667,7 +666,6 @@ func testTransactionSender(t *testing.T, client *rpc.Client) {
// TransactionSender. Ensure the server is not asked by canceling the context here.
canceledCtx, cancel := context.WithCancel(context.Background())
cancel()
<-canceledCtx.Done() // Ensure the close of the Done channel
sender1, err := ec.TransactionSender(canceledCtx, tx1, block2.Hash(), 0)
if err != nil {
t.Fatal(err)
Expand Down

0 comments on commit 7f09a1e

Please sign in to comment.