Add signal to the im test group ()

* Add signal to the im test group

* fix(ipconfig_test.go): disable when running in CI

Reference issue: https://github.com/ooni/probe/issues/1418

* fix(geolocate): remove unused variable

Came across this while looking into this issue with the CI that
is now failing. Guess fixing it here comes across as leaving the
camp slightly less in a bad shape than how I found it.

Co-authored-by: Simone Basso <bassosimone@gmail.com>
This commit is contained in:
Arturo Filastò 2021-03-22 14:31:50 +01:00 committed by GitHub
parent 28ce79eff1
commit 70d7c1a22c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 4 deletions
cmd/ooniprobe/internal/nettests
internal/engine/geolocate

@ -37,6 +37,7 @@ var All = map[string]Group{
FacebookMessenger{},
Telegram{},
WhatsApp{},
Signal{},
},
UnattendedOK: true,
},
@ -54,7 +55,6 @@ var All = map[string]Group{
Nettests: []Nettest{
DNSCheck{},
STUNReachability{},
Signal{},
},
},
}

@ -4,6 +4,7 @@ import (
"context"
"net"
"net/http"
"os"
"testing"
"github.com/apex/log"
@ -11,6 +12,11 @@ import (
)
func TestIPLookupWorksUsingIPConfig(t *testing.T) {
if os.Getenv("CI") == "true" {
// See https://github.com/ooni/probe-cli/pull/259/checks?check_run_id=2166066881#step:5:123
// as well as https://github.com/ooni/probe/issues/1418.
t.Skip("This test does not work with GitHub Actions")
}
ip, err := ipConfigIPLookup(
context.Background(),
http.DefaultClient,

@ -7,7 +7,6 @@ import (
"math/rand"
"net"
"net/http"
"sync"
"time"
"github.com/ooni/probe-cli/v3/internal/engine/internal/multierror"
@ -61,8 +60,6 @@ var (
fn: ubuntuIPLookup,
},
}
once sync.Once
)
type ipLookupClient struct {