You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some tests are flaky if they are executed in parallel, i.e. one or more of them may suddenly fail. The affected tests are test/t-chain, test/t-chaindb and test/t-wallet. This issue may be reproduced by executing the test suite in parallel with the -j parameter to set the number of processes the test suite should use, e.g. make -j32 check
As far as I could debug the issue, this is solely caused by btc_rimraf(), which is called in all three tests with the value of BTC_PREFIX (set to './tmp' in tests.h). The method attempts to delete the folder with the given name ('./tmp', which all three tests use) and, if it is not empty, all files and folders inside it. As the first of the affected tests finishes, it deletes the files the other tests still use, causing them to fail.
The issue be fixable by simply defining a different folder name for BTC_PREFIX in the each test (e.g. directly in the respective *.c-file), instead of defining it in tests.h.
The text was updated successfully, but these errors were encountered:
Some tests are flaky if they are executed in parallel, i.e. one or more of them may suddenly fail. The affected tests are
test/t-chain
,test/t-chaindb
andtest/t-wallet
. This issue may be reproduced by executing the test suite in parallel with the-j
parameter to set the number of processes the test suite should use, e.g.make -j32 check
As far as I could debug the issue, this is solely caused by btc_rimraf(), which is called in all three tests with the value of BTC_PREFIX (set to './tmp' in tests.h). The method attempts to delete the folder with the given name ('./tmp', which all three tests use) and, if it is not empty, all files and folders inside it. As the first of the affected tests finishes, it deletes the files the other tests still use, causing them to fail.
The issue be fixable by simply defining a different folder name for BTC_PREFIX in the each test (e.g. directly in the respective *.c-file), instead of defining it in tests.h.
The text was updated successfully, but these errors were encountered: