mirror of
https://github.com/status-im/libp2p-test-plans.git
synced 2025-01-09 14:25:58 +00:00
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
|
||
|
}
|