From 0853dedc4321c6d75f6a70c8913952f065f07792 Mon Sep 17 00:00:00 2001 From: Erik Arvstedt Date: Tue, 5 Oct 2021 21:44:56 +0200 Subject: [PATCH] tests/regtest: don't fail when restarting bitcoind --- test/tests.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/tests.nix b/test/tests.nix index b63973a..4e93ae4 100644 --- a/test/tests.nix +++ b/test/tests.nix @@ -229,7 +229,8 @@ let services.bitcoind.regtest = true; systemd.services.bitcoind.postStart = mkAfter '' cli=${config.services.bitcoind.cli}/bin/bitcoin-cli - $cli createwallet "test" + # Don't fail when wallet already exists + $cli createwallet "test" || true address=$($cli getnewaddress) $cli generatetoaddress 10 $address '';