Closed ppisar closed 2 years ago
The longer sleep did not help. It passed for the first time probably by a chance.
I am going to make this an AUTHOR_TESTING only test. It is useful for me when maintaining features and catching bugs, but the nature of the test makes it suffer from timing problems (that will not effect things outside of tests). I will still run it for releases, but no need to block installation on it.
Thanks. That would resolve the problem for me. However, wouldn't be better to move the test file into ./xt directory?
Since 1.000095 I experience a repetitive test failure in t/integration/reload_syntax_error.t:
I observe this failure in Fedora CI (complete log at https://osci-jenkins-1.ci.fedoraproject.org/job/fedora-ci/job/dist-git-pipeline/job/master/106391/testReport/(root)/tests/_tests_upstream_tests/ will disappear soon), but I cannot reproduce it locally. I also don't have a shell access to the CI machine to debug it more. All other tests pass. The test is about reloading a preloaded module which is an invalid Perl code (an undeclared lexical variable).
I noticed the test contains "sleep 2". This is a typical place where a code becomes sensitive to a real time. I removed the sleep, but still could not reproduce it locally. Interesting fact is that the test is quite slow even without that sleep. Maybe there is another sleep in the library.
Therefore I increased the sleep 5 times and then the test passed in the CI system. Any idea how to fix it properly?