feat(ExperimentOrchestraClient): add CheckIn (#263)

We use ExperimentOrchestraClient in several places to help us
calling probe-services APIs. We need to call CheckIn because we
want to use CheckIn in InputLoader.

(We also want to remove the URLs API, but that is not something
doable now, since the mobile app is still using this API via
the wrappers at pkg/oonimkall.)

Work part of https://github.com/ooni/probe/issues/1299.
This commit is contained in:
Simone Basso 2021-03-25 12:02:02 +01:00 committed by GitHub
commit 3b029ee0d6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 22 additions and 1 deletions

View file

@ -315,7 +315,7 @@ func TestMaxRuntime(t *testing.T) {
// In case there are further timeouts, e.g. in the sessionresolver, the
// time used by the experiment will be much more. This is for example the
// case in https://github.com/ooni/probe-engine/issues/1005.
if time.Now().Sub(begin) > 10*time.Second {
if time.Since(begin) > 10*time.Second {
t.Fatal("expected shorter runtime")
}
}