fix(psiphon): increase the maximum runtime to 300s (#596)
See: https://github.com/ooni/probe/issues/1856. This diff will need to be backported to release/3.11.
This commit is contained in:
parent
5a481b395a
commit
c527ca1f61
|
@ -16,7 +16,7 @@ import (
|
|||
|
||||
const (
|
||||
testName = "psiphon"
|
||||
testVersion = "0.5.0"
|
||||
testVersion = "0.5.1"
|
||||
)
|
||||
|
||||
// Config contains the experiment's configuration.
|
||||
|
@ -70,7 +70,7 @@ func (m *Measurer) Run(
|
|||
ctx context.Context, sess model.ExperimentSession,
|
||||
measurement *model.Measurement, callbacks model.ExperimentCallbacks,
|
||||
) error {
|
||||
const maxruntime = 60
|
||||
const maxruntime = 300
|
||||
ctx, cancel := context.WithTimeout(ctx, maxruntime*time.Second)
|
||||
var (
|
||||
wg sync.WaitGroup
|
||||
|
|
|
@ -23,7 +23,7 @@ func TestNewExperimentMeasurer(t *testing.T) {
|
|||
if measurer.ExperimentName() != "psiphon" {
|
||||
t.Fatal("unexpected name")
|
||||
}
|
||||
if measurer.ExperimentVersion() != "0.5.0" {
|
||||
if measurer.ExperimentVersion() != "0.5.1" {
|
||||
t.Fatal("unexpected version")
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user