chore: rename stun_reachability => stunreachability (#254)

See https://github.com/ooni/probe/issues/1394

Ok @hellais @FedericoCeratto
This commit is contained in:
Simone Basso
2021-03-11 19:35:22 +01:00
committed by GitHub
parent 78b5bf0caa
commit a02052fb0c
4 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -241,7 +241,7 @@ var experimentsByName = map[string]func(*Session) *ExperimentBuilder{
}
},
"stun_reachability": func(session *Session) *ExperimentBuilder {
"stunreachability": func(session *Session) *ExperimentBuilder {
return &ExperimentBuilder{
build: func(config interface{}) *Experiment {
return NewExperiment(session, stunreachability.NewExperimentMeasurer(
@@ -19,8 +19,8 @@ import (
)
const (
testName = "stun_reachability"
testVersion = "0.1.0"
testName = "stunreachability"
testVersion = "0.2.0"
)
// Config contains the experiment config.
@@ -18,10 +18,10 @@ import (
func TestMeasurerExperimentNameVersion(t *testing.T) {
measurer := stunreachability.NewExperimentMeasurer(stunreachability.Config{})
if measurer.ExperimentName() != "stun_reachability" {
if measurer.ExperimentName() != "stunreachability" {
t.Fatal("unexpected ExperimentName")
}
if measurer.ExperimentVersion() != "0.1.0" {
if measurer.ExperimentVersion() != "0.2.0" {
t.Fatal("unexpected ExperimentVersion")
}
}