chore: rename stun_reachability => stunreachability (#254)
See https://github.com/ooni/probe/issues/1394 Ok @hellais @FedericoCeratto
This commit is contained in:
parent
78b5bf0caa
commit
a02052fb0c
|
@ -5,7 +5,7 @@ type STUNReachability struct{}
|
||||||
|
|
||||||
// Run starts the nettest.
|
// Run starts the nettest.
|
||||||
func (n STUNReachability) Run(ctl *Controller) error {
|
func (n STUNReachability) Run(ctl *Controller) error {
|
||||||
builder, err := ctl.Session.NewExperimentBuilder("stun_reachability")
|
builder, err := ctl.Session.NewExperimentBuilder("stunreachability")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
|
@ -241,7 +241,7 @@ var experimentsByName = map[string]func(*Session) *ExperimentBuilder{
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
"stun_reachability": func(session *Session) *ExperimentBuilder {
|
"stunreachability": func(session *Session) *ExperimentBuilder {
|
||||||
return &ExperimentBuilder{
|
return &ExperimentBuilder{
|
||||||
build: func(config interface{}) *Experiment {
|
build: func(config interface{}) *Experiment {
|
||||||
return NewExperiment(session, stunreachability.NewExperimentMeasurer(
|
return NewExperiment(session, stunreachability.NewExperimentMeasurer(
|
||||||
|
|
|
@ -19,8 +19,8 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
testName = "stun_reachability"
|
testName = "stunreachability"
|
||||||
testVersion = "0.1.0"
|
testVersion = "0.2.0"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Config contains the experiment config.
|
// Config contains the experiment config.
|
||||||
|
|
|
@ -18,10 +18,10 @@ import (
|
||||||
|
|
||||||
func TestMeasurerExperimentNameVersion(t *testing.T) {
|
func TestMeasurerExperimentNameVersion(t *testing.T) {
|
||||||
measurer := stunreachability.NewExperimentMeasurer(stunreachability.Config{})
|
measurer := stunreachability.NewExperimentMeasurer(stunreachability.Config{})
|
||||||
if measurer.ExperimentName() != "stun_reachability" {
|
if measurer.ExperimentName() != "stunreachability" {
|
||||||
t.Fatal("unexpected ExperimentName")
|
t.Fatal("unexpected ExperimentName")
|
||||||
}
|
}
|
||||||
if measurer.ExperimentVersion() != "0.1.0" {
|
if measurer.ExperimentVersion() != "0.2.0" {
|
||||||
t.Fatal("unexpected ExperimentVersion")
|
t.Fatal("unexpected ExperimentVersion")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user