Add signal to the im test group (#259)
* 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:
parent
28ce79eff1
commit
70d7c1a22c
|
@ -37,6 +37,7 @@ var All = map[string]Group{
|
||||||
FacebookMessenger{},
|
FacebookMessenger{},
|
||||||
Telegram{},
|
Telegram{},
|
||||||
WhatsApp{},
|
WhatsApp{},
|
||||||
|
Signal{},
|
||||||
},
|
},
|
||||||
UnattendedOK: true,
|
UnattendedOK: true,
|
||||||
},
|
},
|
||||||
|
@ -54,7 +55,6 @@ var All = map[string]Group{
|
||||||
Nettests: []Nettest{
|
Nettests: []Nettest{
|
||||||
DNSCheck{},
|
DNSCheck{},
|
||||||
STUNReachability{},
|
STUNReachability{},
|
||||||
Signal{},
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,6 +4,7 @@ import (
|
||||||
"context"
|
"context"
|
||||||
"net"
|
"net"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
"os"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/apex/log"
|
"github.com/apex/log"
|
||||||
|
@ -11,6 +12,11 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestIPLookupWorksUsingIPConfig(t *testing.T) {
|
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(
|
ip, err := ipConfigIPLookup(
|
||||||
context.Background(),
|
context.Background(),
|
||||||
http.DefaultClient,
|
http.DefaultClient,
|
||||||
|
|
|
@ -7,7 +7,6 @@ import (
|
||||||
"math/rand"
|
"math/rand"
|
||||||
"net"
|
"net"
|
||||||
"net/http"
|
"net/http"
|
||||||
"sync"
|
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/ooni/probe-cli/v3/internal/engine/internal/multierror"
|
"github.com/ooni/probe-cli/v3/internal/engine/internal/multierror"
|
||||||
|
@ -61,8 +60,6 @@ var (
|
||||||
fn: ubuntuIPLookup,
|
fn: ubuntuIPLookup,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
once sync.Once
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type ipLookupClient struct {
|
type ipLookupClient struct {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user