Merged in #28838. Seems to be failing on all MSVC CI jobs.
https://github.com/bitcoin/bitcoin/actions/runs/7492122146/job/20394956531?pr=29232#step:27:7862:
0 test 2024-01-11T17:24:30.783000Z TestFramework (INFO): Backup can't be loaded during background sync
1 test 2024-01-11T17:24:30.783000Z TestFramework (ERROR): Assertion failed
2 Traceback (most recent call last):
3 File "D:\a\bitcoin\bitcoin\test\functional\test_framework\util.py", line 140, in try_rpc
4 fun(*args, **kwds)
5 File "D:\a\bitcoin\bitcoin\test\functional\test_framework\coverage.py", line 50, in __call__
6 return_val = self.auth_service_proxy_instance.__call__(*args, **kwargs)
7 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
8 File "D:\a\bitcoin\bitcoin\test\functional\test_framework\authproxy.py", line 129, in __call__
9 raise JSONRPCException(response['error'], status)
10 test_framework.authproxy.JSONRPCException: remove_all: The process cannot access the file because it is being used by another process.: "D:\a\_temp\test_runner_?_??_20240111_171305\wallet_assumeutxo_47\node1\regtest\w" (-1)
11 During handling of the above exception, another exception occurred:
12 Traceback (most recent call last):
13 File "D:\a\bitcoin\bitcoin\test\functional\test_framework\test_framework.py", line 131, in main
14 self.run_test()
15 File "D:\a\bitcoin\bitcoin/test/functional/wallet_assumeutxo.py", line 127, in run_test
16 assert_raises_rpc_error(-4, "Wallet loading failed. Error loading wallet. Wallet requires blocks to be downloaded, and software does not currently support loading wallets while blocks are being downloaded out of order when using assumeutxo snapshots. Wallet should be able to load successfully after node sync reaches height 299", n1.restorewallet, "w", "backup_w.dat")
17 File "D:\a\bitcoin\bitcoin\test\functional\test_framework\util.py", line 131, in assert_raises_rpc_error
18 assert try_rpc(code, message, fun, *args, **kwds), "No exception raised"
19 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
20 File "D:\a\bitcoin\bitcoin\test\functional\test_framework\util.py", line 144, in try_rpc
21 raise AssertionError("Unexpected JSONRPC error code %i" % e.error["code"])
22 AssertionError: Unexpected JSONRPC error code -1