fix: disable psiphon when building with go1.19 (#871)
Part of https://github.com/ooni/probe/issues/2211. See also https://github.com/ooni/probe/issues/2222, which describes the issue we have with psiphon and go1.19.
This commit is contained in:
parent
9ffa124511
commit
208ffa253b
26 changed files with 113 additions and 37 deletions
|
|
@ -3,6 +3,8 @@ package tunnel_test
|
|||
import (
|
||||
"context"
|
||||
"errors"
|
||||
"runtime"
|
||||
"strings"
|
||||
"testing"
|
||||
|
||||
"github.com/ooni/probe-cli/v3/internal/tunnel"
|
||||
|
|
@ -23,6 +25,9 @@ func TestStartNoTunnel(t *testing.T) {
|
|||
}
|
||||
|
||||
func TestStartPsiphonWithCancelledContext(t *testing.T) {
|
||||
if strings.HasPrefix(runtime.Version(), "go1.19") {
|
||||
t.Skip("TODO(https://github.com/ooni/probe/issues/2222)")
|
||||
}
|
||||
ctx, cancel := context.WithCancel(context.Background())
|
||||
cancel() // fail immediately
|
||||
tun, _, err := tunnel.Start(ctx, &tunnel.Config{
|
||||
|
|
|
|||
Loading…
Reference in a new issue