From 610d05f38fff53e3f3afc7a0fa5c4a26e262c434 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arturo=20Filast=C3=B2?= Date: Mon, 19 Mar 2018 17:29:32 +0100 Subject: [PATCH] Fix bug in duplicate log lines (and events). Fixes https://github.com/OpenObservatory/gooni/issues/6 --- Gopkg.lock | 2 +- nettests/performance/dash.go | 4 ++-- nettests/performance/ndt.go | 4 ++-- nettests/websites/web_connectivity.go | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Gopkg.lock b/Gopkg.lock index 89d8ac0..ff5baa2 100644 --- a/Gopkg.lock +++ b/Gopkg.lock @@ -89,7 +89,7 @@ branch = "master" name = "github.com/measurement-kit/go-measurement-kit" packages = ["."] - revision = "408b54290aef34398a50353e7a66618574d0f075" + revision = "ae6643546db7c99bbc6ecb37b86d04baec04d295" [[projects]] branch = "master" diff --git a/nettests/performance/dash.go b/nettests/performance/dash.go index 538028d..d64efc8 100644 --- a/nettests/performance/dash.go +++ b/nettests/performance/dash.go @@ -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() } diff --git a/nettests/performance/ndt.go b/nettests/performance/ndt.go index 3b972b0..c6425ed 100644 --- a/nettests/performance/ndt.go +++ b/nettests/performance/ndt.go @@ -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() } diff --git a/nettests/websites/web_connectivity.go b/nettests/websites/web_connectivity.go index b111e83..fa05527 100644 --- a/nettests/websites/web_connectivity.go +++ b/nettests/websites/web_connectivity.go @@ -11,8 +11,8 @@ type WebConnectivity struct { // Run starts the test func (n WebConnectivity) Run(ctl *nettests.Controller) error { - nt := mk.Nettest{Name: "WebConnectivity"} - ctl.Init(&nt) + nt := mk.NewNettest("WebConnectivity") + ctl.Init(nt) return nt.Run() }