cmd/geth: revert

This commit is contained in:
Gary Rong 2025-05-08 14:44:44 +08:00
parent 032ef0e84c
commit b853a2f50c

View file

@ -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 {