-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(ooniprobe): add torsf to experimental group (#670)
Reference issue: ooni/probe#1917. I needed to change the summary key type returned by `torsf` to be a value. It seems the DB layer assumes that. If we pass it a pointer, it panics because it's experiment a value rather than a pointer 🤷.
- Loading branch information
1 parent
97d2b5a
commit a01f901
Showing
4 changed files
with
17 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -55,6 +55,7 @@ var All = map[string]Group{ | |
Nettests: []Nettest{ | ||
DNSCheck{}, | ||
STUNReachability{}, | ||
TorSf{}, | ||
}, | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package nettests | ||
|
||
// TorSf test implementation | ||
type TorSf struct { | ||
} | ||
|
||
// Run starts the test | ||
func (h TorSf) Run(ctl *Controller) error { | ||
builder, err := ctl.Session.NewExperimentBuilder("torsf") | ||
if err != nil { | ||
return err | ||
} | ||
return ctl.Run(builder, []string{""}) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters