accounts/abi/bind/backends: fixed TestSimulatedBackend

This commit is contained in:
Pratik Patil 2025-05-13 14:51:08 +05:30
parent 6b5899125b
commit 113dd09e13
No known key found for this signature in database
GPG key ID: AFDCA496554874B3

View file

@ -20,6 +20,7 @@ import (
"bytes"
"context"
"errors"
"fmt"
"math/big"
"math/rand"
"reflect"
@ -40,7 +41,9 @@ import (
)
func TestSimulatedBackend(t *testing.T) {
defer goleak.VerifyNone(t, leak.IgnoreList()...)
// The goroutine leak we're ignoring is actually not a real leak
// it's a known behavior of the OpenCensus package that we're using for metrics and monitoring
defer goleak.VerifyNone(t, append(leak.IgnoreList(), goleak.IgnoreTopFunction("go.opencensus.io/stats/view.(*worker).start"))...)
var gasLimit uint64 = 8000029
key, _ := crypto.GenerateKey() // nolint: gosec
@ -99,6 +102,8 @@ func TestSimulatedBackend(t *testing.T) {
if isPending {
t.Fatal("transaction should not have pending status")
}
fmt.Println("PSP - here")
}
var testKey, _ = crypto.HexToECDSA("b71c71a67e1177ad4e901695e1b4b9ee17ae16c6668d313eac2f96dbcda3f291")