From e636ee2927b2a0cc85b10d5476e902b0199b87aa Mon Sep 17 00:00:00 2001 From: Mike Hearn Date: Sun, 17 Nov 2013 23:08:08 +0100 Subject: [PATCH] Take out a flaky part of WalletTest that isn't relevant anymore since even immediate auto-saves now run on a separate thread. The auto-saving is tested elsewhere anyway. --- .../test/java/com/google/bitcoin/core/WalletTest.java | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/core/src/test/java/com/google/bitcoin/core/WalletTest.java b/core/src/test/java/com/google/bitcoin/core/WalletTest.java index b2a83e62..2d57cd5f 100644 --- a/core/src/test/java/com/google/bitcoin/core/WalletTest.java +++ b/core/src/test/java/com/google/bitcoin/core/WalletTest.java @@ -929,16 +929,6 @@ public class WalletTest extends TestWithWallet { wallet.receivePending(t1, null); Sha256Hash hash3 = Sha256Hash.hashFileContents(f); assertFalse("Wallet not saved after receivePending", hash2.equals(hash3)); // File has changed again. - - Block b1 = createFakeBlock(blockStore, t1).block; - chain.add(b1); - Sha256Hash hash4 = Sha256Hash.hashFileContents(f); - assertFalse("Wallet not saved after chain add.1", hash3.equals(hash4)); // File has changed again. - - // Check that receiving some block without any relevant transactions still triggers a save. - Block b2 = b1.createNextBlock(new ECKey().toAddress(params)); - chain.add(b2); - assertFalse("Wallet not saved after chain add.2", hash4.equals(Sha256Hash.hashFileContents(f))); // File has changed again. } @Test