You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The CI fails intermittently with this error:
--- FAIL: TestOBFS4DialerFailsWithConnectionErrorAndContextExpiration (0.00s)
Error: obfs4_test.go:80: not the error we expected mocked error
FAIL
coverage: 99.3% of statements
We want to test whether we get the context failure if the error
generated inside normal code happens _after_ the context cancellation.
The best way to do that is to write code that is not racy. To this
end, we just need to pause normal code until we know that the context
has returned to the caller. We also need to ensure we do not leak
a goroutine, hence we use a WaitGroup to check that.
Fixesooni/probe#1750
…ooni#452)
* fix: disable debianrepo build on master branch
This just mitigates ooni/probe#1741 and does
not fully address it, but I'd rather avoid delving into this problem until
I open a release/v3.11.0 branch and have to really fix this issue.
* fix: only run coverage using go1.17
This is the version of Go with which we are going to bless v3.11.0
therefore it's the only version of Go that matters.
Reference issue: ooni/probe#1738.
* fix(ptx/obfs4_test.go): avoid context-vs-normal-code race
We want to test whether we get the context failure if the error
generated inside normal code happens _after_ the context cancellation.
The best way to do that is to write code that is not racy. To this
end, we just need to pause normal code until we know that the context
has returned to the caller. We also need to ensure we do not leak
a goroutine, hence we use a WaitGroup to check that.
Fixesooni/probe#1750
Describe the bug
The CI fails intermittently with this error:
See https://github.com/ooni/probe-cli/pull/446/checks?check_run_id=3381985435
To Reproduce
Run many CI runs per day: eventually, it will happen.
Expected behavior
The test always succeeds.
Screenshots
N/A
System information (please complete the following information):
GitHub Actions
Additional context
N/A
The text was updated successfully, but these errors were encountered: