mirror of
https://github.com/status-im/libp2p-test-plans.git
synced 2025-01-20 19:59:43 +00:00
4d4f24ad8f
* migrate dht test plan from testground/testground. * dht: update module and import paths. * rm redundant scripts; rm redundant line in manifest.
21 lines
353 B
Go
21 lines
353 B
Go
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
|
|
}
|