[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Tests failing in many chroots but passing in some others



Hi Pierre,

On 16-10-2020 22:49, Pierre Gruet wrote:
> I have just found this was due to a file not being closed with the
> close() method. Afterwards some other tests were counting open files and
> failing because of this file not being closed whereas they expected it.
> I guess the Java garbage collector was closing the file early enough on
> some computers, and not on others.
> 
> Maybe this case will help in the future when meeting other such situations.

It would be awesome if we would document this on the wiki. We have the
namespace https://wiki.debian.org/ContinuousIntegration/. Can I ask you
to create a new page with CommonPatternsInFlakyTests (or something like
that, better name welcome)?

Paul


Reply to: