Use ooni/probe-engine: episode 1 (#42)

This commit is contained in:
Simone Basso 2019-05-23 16:38:46 +02:00 committed by GitHub
commit df629237be
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
15 changed files with 147 additions and 322 deletions

View file

@ -7,7 +7,7 @@ import (
"os"
"testing"
"github.com/ooni/probe-cli/utils"
"github.com/ooni/probe-engine/model"
db "upper.io/db.v3"
)
@ -29,7 +29,7 @@ func TestMeasurementWorkflow(t *testing.T) {
t.Fatal(err)
}
location := utils.LocationInfo{
location := model.LocationInfo{
ASN: 0,
CountryCode: "IT",
NetworkName: "Unknown",
@ -103,7 +103,7 @@ func TestDeleteResult(t *testing.T) {
t.Fatal(err)
}
location := utils.LocationInfo{
location := model.LocationInfo{
ASN: 0,
CountryCode: "IT",
NetworkName: "Unknown",
@ -175,13 +175,13 @@ func TestNetworkCreate(t *testing.T) {
t.Fatal(err)
}
l1 := utils.LocationInfo{
l1 := model.LocationInfo{
ASN: 2,
CountryCode: "IT",
NetworkName: "Antaninet",
}
l2 := utils.LocationInfo{
l2 := model.LocationInfo{
ASN: 3,
CountryCode: "IT",
NetworkName: "Fufnet",