Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

x/time/rate: TestWaitCancel failures due to mismatched delays #43055

Open
bcmills opened this issue Dec 7, 2020 · 0 comments
Open

x/time/rate: TestWaitCancel failures due to mismatched delays #43055

bcmills opened this issue Dec 7, 2020 · 0 comments

Comments

@bcmills
Copy link
Member

@bcmills bcmills commented Dec 7, 2020

2020-06-30T17:30:20-3af7569/android-amd64-emu

--- FAIL: TestWaitCancel (0.10s)
    rate_test.go:409: lim.WaitN(will-cancel, lim, 3) = context canceled with delay 96.22425ms ; want <non-nil error> with delay 100ms
    rate_test.go:438: tokens:2.0118626 last:2020-11-05 18:07:51.77802614 +0000 UTC m=+0.318446581 lastEvent:2020-11-05 18:07:51.87644761 +0000 UTC m=+0.417260321
FAIL
exitcode=1FAIL	golang.org/x/time/rate	85.825s

2020-06-30T17:30:20-3af7569/darwin-amd64-nocgo

--- FAIL: TestWaitCancel (0.41s)
    rate_test.go:409: lim.WaitN(will-cancel, lim, 3) = <nil> with delay 262.927081ms ; want <non-nil error> with delay 100ms
    rate_test.go:438: tokens:-1.99996442 last:2020-12-07 13:16:57.669299 -0500 EST m=+0.205996473 lastEvent:2020-12-07 13:16:57.869295442 -0500 EST m=+0.405992915
    rate_test.go:409: lim.WaitN(act-now-after-cancel, lim, 2) = <nil> with delay 146.745851ms ; want <nil> with delay 0s
FAIL
FAIL	golang.org/x/time/rate	0.870s

CC @Sajmani

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant