Skip to content

Commit

Permalink
morefixes
Browse files Browse the repository at this point in the history
  • Loading branch information
bassosimone committed Dec 29, 2019
1 parent 4fcac47 commit 8aef140
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion nettests/nettests_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ func newTestingContext(t *testing.T) *ooni.Context {
testingConfig := path.Join("..", "testdata", "testing-config.json")
shutil.Copy(testingConfig, configPath, false)
ctx := ooni.NewContext(configPath, homePath)
err = ctx.Init()
swName := "ooniprobe-cli-tests"
swVersion := "3.0.0-alpha"
err = ctx.Init(swName, swVersion)
if err != nil {
t.Fatal(err)
}
Expand Down
4 changes: 3 additions & 1 deletion ooni_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ func TestInit(t *testing.T) {
defer os.RemoveAll(ooniHome)

ctx := NewContext("", ooniHome)
if err := ctx.Init(); err != nil {
swName := "ooniprobe-cli-tests"
swVersion := "3.0.0-alpha"
if err := ctx.Init(swName, swVersion); err != nil {
t.Error(err)
t.Fatal("failed to init the context")
}
Expand Down

0 comments on commit 8aef140

Please sign in to comment.