Fix bug in duplicate log lines (and events).
Fixes https://github.com/OpenObservatory/gooni/issues/6
This commit is contained in:
@@ -11,8 +11,8 @@ type Dash struct {
|
||||
|
||||
// Run starts the test
|
||||
func (d Dash) Run(ctl *nettests.Controller) error {
|
||||
dash := mk.Nettest{Name: "Dash"}
|
||||
ctl.Init(&dash)
|
||||
dash := mk.NewNettest("Dash")
|
||||
ctl.Init(dash)
|
||||
return dash.Run()
|
||||
}
|
||||
|
||||
|
||||
@@ -11,8 +11,8 @@ type NDT struct {
|
||||
|
||||
// Run starts the test
|
||||
func (n NDT) Run(ctl *nettests.Controller) error {
|
||||
nt := mk.Nettest{Name: "Ndt"}
|
||||
ctl.Init(&nt)
|
||||
nt := mk.NewNettest("Ndt")
|
||||
ctl.Init(nt)
|
||||
return nt.Run()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user