Open austinvazquez opened 1 year ago
After adding troubleshooting code, the error is the following from https://github.com/containerd/ttrpc/actions/runs/4368862651/jobs/7641979795
🇩 coverage
? github.com/containerd/ttrpc/internal [no test files]
--- FAIL: TestServerRequestTimeout (0.02s)
server_test.go:403: expected deadline 2023-03-08 22:07:26.763647 +0000 UTC m=+601.464964001, actual: 2023-03-08 22:07:26.7636471 +0000 UTC
FAIL
FAIL github.com/containerd/ttrpc 1.723s
? github.com/containerd/ttrpc/plugin [no test files]
FAIL
mingw32-make: *** [makefile:154: coverage] Error 1
Error: Process completed with exit code 1.
After putting the expected and actual values in same format, it looks like the issue is off by 1 nanosecond. My read of Golang's context.Context interface is that successful calls to Deadline
would result in consistent results. Is this possibly a Go bug on Windows?
TestServerRequestTimeout
has been intermittently failing in PRs due to differences in deadline comparisons.Example output from a PR run