-
Notifications
You must be signed in to change notification settings - Fork 61
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
t/response.t randomly fails #101
Comments
Just saw a variation of this failure (perl 5.20.2, debian/jessie):
|
Looks like a timing issue. May be reproduced by putting a
|
A possible solution is to hack around system's time() to make sure that the clock does not move: eserte@e045b2c However, I feel somewhat uncomfortable using |
I like this module - https://metacpan.org/pod/Test::MockTime |
However not perfect: http://matrix.cpantesters.org/?dist=Test-MockTime%200.17;reports=1 |
Here's another possible solution: eserte@d57c758 The test code does not look pretty anymore, but it is quite robust against all kind of delays (try |
LGTM. |
How about using
becomes something like:
|
Sounds great! |
I had this failure occur, and then I responded "retry" to my cpanm prompt and it went away:
There's one reproduction on CPAN Testers on Dragonfly BSD with Perl 5.18.4
But I'm failing here on Linux + 5.27.9
The text was updated successfully, but these errors were encountered: