Bitcoin: Bitcoin core functional tests failing running on WSL2 on Windows 10
Bitcoin core function tests that fail under Windows 10 with WSL2
As a developer who works with Bitcoin, you rely on testing the code to ensure its stability and functionality. However, if you perform tests such as test/functional/test_runner.py 'under Windows 10 using WSL2 (Windows subsystem for Linux), you will find mistakes that prevent your tests from continuing.
In this article we will deal with the problems while these tests are carried out on Windows 10 with WSL2 and provide solutions to solve solutions.
The problem
The main reason for these failed tests is a well -known problem in the BTC code base Bitcoin Core (BTC). The file "Feature_Fee_estimation.py” contains tests that try to appreciate the feature fees that are an essential part of the Bitcoin protocol. Unfortunately, due to a critical error, these tests are missing from Windows 10 with WSL2.
The specific error message is:
`
FEATURE FIEN FIENT FOCCESS.
`
Solution
To solve this problem, follow these steps:
- Update the test environment : Make sure you have installed the latest version of Bitcoin Core and updated to the latest publications.
- Use another test directory : Instead of using
/MNT/TMP
, assemble a 4 GB of temporary hard drive (/MNT/TMP/Cache
) to offer more space for testing.
- Deactivate the caching : Temporate the caching in your test runner by changing the option “-Cachedir”:
`
Test/Functional/Test_Runner.py – -Cachedir =/Mnt/TMP
`
This prevents intermediate results again, which could help solve the problem.
- ** manually carry out the tests: Instead of using the automatic test function, carry out each test individually to isolate the problem.
- Check the updates
: Make sure you are installed via the latest updates for your test environment and your Bitcoin core.
Additional considerations
- If you have problems with other tests or related code changes, it is important to check the Bitcoin core repository and output trackers to relevant updates or error reports.
- If you encounter further mistakes or have any questions about testing or debugging Bitcoin Core, you should contact Bitcoin Community forums or the stack overflow.
Diploma
While these tests on Windows 10 with WSL2 can be a challenge due to a critical problem in the Bitcoin core code base, the following steps should contribute to solving the problems occurring. By taking over these precautions and checking after updates, you can ensure that your tests continue to work as expected.