Use more general ooni/probe-engine API (#67)
No functional change, just importing less stuff and meddling much less with the internals of ooni/probe-engine.
This commit is contained in:
parent
1b9bc457b9
commit
946289d6fe
14 changed files with 230 additions and 128 deletions
|
|
@ -4,7 +4,6 @@ import (
|
|||
"github.com/pkg/errors"
|
||||
|
||||
"github.com/ooni/probe-cli/nettests"
|
||||
"github.com/ooni/probe-engine/experiment/dash"
|
||||
)
|
||||
|
||||
// Dash test implementation
|
||||
|
|
@ -13,10 +12,11 @@ type Dash struct {
|
|||
|
||||
// Run starts the test
|
||||
func (d Dash) Run(ctl *nettests.Controller) error {
|
||||
experiment := dash.NewExperiment(
|
||||
ctl.Ctx.Session, dash.Config{},
|
||||
)
|
||||
return ctl.Run(experiment, []string{""})
|
||||
builder, err := ctl.Ctx.Session.NewExperimentBuilder("dash")
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
return ctl.Run(builder, []string{""})
|
||||
}
|
||||
|
||||
// DashTestKeys for the test
|
||||
|
|
|
|||
Loading…
Reference in a new issue