refactor: nettests is now an internal package (#165)
I'm moving everything into internal packages since this ain't a library. While there, remove typo that was causing a build breakage.
This commit is contained in:
parent
fb2ca32004
commit
a58dff3050
|
@ -10,7 +10,7 @@ import (
|
||||||
"github.com/ooni/probe-cli/internal/cli/onboard"
|
"github.com/ooni/probe-cli/internal/cli/onboard"
|
||||||
"github.com/ooni/probe-cli/internal/cli/root"
|
"github.com/ooni/probe-cli/internal/cli/root"
|
||||||
"github.com/ooni/probe-cli/internal/database"
|
"github.com/ooni/probe-cli/internal/database"
|
||||||
"github.com/ooni/probe-cli/nettests"
|
"github.com/ooni/probe-cli/internal/nettests"
|
||||||
)
|
)
|
||||||
|
|
||||||
func runNettestGroup(tg string, ctx *ooni.Context, network *database.Network) error {
|
func runNettestGroup(tg string, ctx *ooni.Context, network *database.Network) error {
|
||||||
|
|
|
@ -84,7 +84,6 @@ func makeSummary(name string, totalCount uint64, anomalyCount uint64, ss string)
|
||||||
|
|
||||||
func logResultItem(w io.Writer, f log.Fields) error {
|
func logResultItem(w io.Writer, f log.Fields) error {
|
||||||
colWidth := 24
|
colWidth := 24
|
||||||
Try running
|
|
||||||
rID := f.Get("id").(int64)
|
rID := f.Get("id").(int64)
|
||||||
name := f.Get("name").(string)
|
name := f.Get("name").(string)
|
||||||
isDone := f.Get("is_done").(bool)
|
isDone := f.Get("is_done").(bool)
|
||||||
|
|
|
@ -16,7 +16,7 @@ func newTestingContext(t *testing.T) *ooni.Context {
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
}
|
}
|
||||||
configPath := path.Join(homePath, "config.json")
|
configPath := path.Join(homePath, "config.json")
|
||||||
testingConfig := path.Join("..", "testdata", "testing-config.json")
|
testingConfig := path.Join("..", "..", "testdata", "testing-config.json")
|
||||||
shutil.Copy(testingConfig, configPath, false)
|
shutil.Copy(testingConfig, configPath, false)
|
||||||
ctx := ooni.NewContext(configPath, homePath)
|
ctx := ooni.NewContext(configPath, homePath)
|
||||||
swName := "ooniprobe-cli-tests"
|
swName := "ooniprobe-cli-tests"
|
Loading…
Reference in New Issue
Block a user