mirror of
https://github.com/status-im/libp2p-test-plans.git
synced 2025-01-12 15:54:09 +00:00
4d4f24ad8f
* migrate dht test plan from testground/testground. * dht: update module and import paths. * rm redundant scripts; rm redundant line in manifest.
35 lines
639 B
Go
35 lines
639 B
Go
package test
|
|
|
|
import (
|
|
"context"
|
|
"github.com/testground/sdk-go/runtime"
|
|
)
|
|
|
|
func All(runenv *runtime.RunEnv) error {
|
|
commonOpts := GetCommonOpts(runenv)
|
|
|
|
ctx, cancel := context.WithTimeout(context.Background(), commonOpts.Timeout)
|
|
defer cancel()
|
|
|
|
ri, err := Base(ctx, runenv, commonOpts)
|
|
if err != nil {
|
|
return err
|
|
}
|
|
|
|
if err := TestFindPeers(ctx, ri); err != nil {
|
|
return err
|
|
}
|
|
if err := TestGetClosestPeers(ctx, ri); err != nil {
|
|
return err
|
|
}
|
|
if err := TestProviderRecords(ctx, ri); err != nil {
|
|
return err
|
|
}
|
|
if err := TestIPNSRecords(ctx, ri); err != nil {
|
|
return err
|
|
}
|
|
|
|
Teardown(ctx, ri.RunInfo)
|
|
return nil
|
|
}
|