mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-26 06:36:43 +00:00
cmd/geth: revert
This commit is contained in:
parent
032ef0e84c
commit
b853a2f50c
1 changed files with 1 additions and 1 deletions
|
|
@ -97,7 +97,7 @@ func runGeth(t *testing.T, args ...string) *testgeth {
|
||||||
// waitForEndpoint attempts to connect to an RPC endpoint until it succeeds.
|
// waitForEndpoint attempts to connect to an RPC endpoint until it succeeds.
|
||||||
func waitForEndpoint(t *testing.T, endpoint string, timeout time.Duration) {
|
func waitForEndpoint(t *testing.T, endpoint string, timeout time.Duration) {
|
||||||
probe := func() bool {
|
probe := func() bool {
|
||||||
ctx, cancel := context.WithCancel(context.Background())
|
ctx, cancel := context.WithTimeout(context.Background(), timeout)
|
||||||
defer cancel()
|
defer cancel()
|
||||||
c, err := rpc.DialContext(ctx, endpoint)
|
c, err := rpc.DialContext(ctx, endpoint)
|
||||||
if c != nil {
|
if c != nil {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue