mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-26 14:46:42 +00:00
accounts/abi/bind/backends: fixed TestSimulatedBackend
This commit is contained in:
parent
6b5899125b
commit
113dd09e13
1 changed files with 6 additions and 1 deletions
|
|
@ -20,6 +20,7 @@ import (
|
||||||
"bytes"
|
"bytes"
|
||||||
"context"
|
"context"
|
||||||
"errors"
|
"errors"
|
||||||
|
"fmt"
|
||||||
"math/big"
|
"math/big"
|
||||||
"math/rand"
|
"math/rand"
|
||||||
"reflect"
|
"reflect"
|
||||||
|
|
@ -40,7 +41,9 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestSimulatedBackend(t *testing.T) {
|
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
|
var gasLimit uint64 = 8000029
|
||||||
|
|
||||||
key, _ := crypto.GenerateKey() // nolint: gosec
|
key, _ := crypto.GenerateKey() // nolint: gosec
|
||||||
|
|
@ -99,6 +102,8 @@ func TestSimulatedBackend(t *testing.T) {
|
||||||
if isPending {
|
if isPending {
|
||||||
t.Fatal("transaction should not have pending status")
|
t.Fatal("transaction should not have pending status")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fmt.Println("PSP - here")
|
||||||
}
|
}
|
||||||
|
|
||||||
var testKey, _ = crypto.HexToECDSA("b71c71a67e1177ad4e901695e1b4b9ee17ae16c6668d313eac2f96dbcda3f291")
|
var testKey, _ = crypto.HexToECDSA("b71c71a67e1177ad4e901695e1b4b9ee17ae16c6668d313eac2f96dbcda3f291")
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue