libp2p-test-plans/dht/test/boostrap_network.go

21 lines
353 B
Go
Raw Normal View History

package test
import (
"context"
"github.com/testground/sdk-go/runtime"
)
func BootstrapNetwork(runenv *runtime.RunEnv) error {
commonOpts := GetCommonOpts(runenv)
ctx, cancel := context.WithTimeout(context.Background(), commonOpts.Timeout)
defer cancel()
_, err := Base(ctx, runenv, commonOpts)
if err != nil {
return err
}
return nil
}