mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
Revert "ethclient: ensure the close of canceled context (#28349)"
This reverts commit 789c18df1f.
This commit is contained in:
parent
3577d7f2ca
commit
7f09a1e931
1 changed files with 0 additions and 2 deletions
|
|
@ -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")
|
||||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue