I hope this fixes #34354
Based on this error from the logs filesystem error: cannot remove: The process cannot access the file because it is being used by another process it looks like there still exists a wallet file by the same name from the previous test case hasn’t been cleaned up yet by it’s process fully. This should be fixed by giving the failing restorewallet case a different wallet name and this shouldn’t have any further effects on the rest of the test because is expected to fail anyway. The following (successful) call already uses a different wallet name.