Don't check file on update. Serialization isn't guaranteed to finish by then.
MODIFY
WalletWasabi.Tests/UnitTests/Transactions/AllTransactionStoreTests.cs
WalletWasabi.Tests/UnitTests/Transactions/AllTransactionStoreTests.cs
@@ -71,17 +71,6 @@ namespace WalletWasabi.Tests.UnitTests.Transactions
Assert.False(txStore.Contains(txHash));
Assert.True(txStore.IsEmpty());
Assert.False(txStore.TryGetTransaction(txHash, out _));
-
- var dir = GetWorkDir();
- var mempoolFile = Path.Combine(dir, "Mempool", "Transactions.dat");
- var txFile = Path.Combine(dir, "ConfirmedTransactions", "Transactions.dat");
- var mempoolContent = await File.ReadAllBytesAsync(mempoolFile);
- var txContent = await File.ReadAllBytesAsync(txFile);
-
- Assert.True(File.Exists(mempoolFile));
- Assert.True(File.Exists(txFile));
- Assert.Empty(mempoolContent);
- Assert.Empty(txContent);
}
#region Helpers

Don't check file on update. Serialization isn't guaranteed to finish by then.