From 7d02eedef25513dd10d33de7a95ec89c316fa62b Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Tue, 2 May 2017 20:38:03 -0700 Subject: [PATCH] test: factor in current chain during revoked close integration test MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The recent multi-chain features resulted in a new directory structure that wasn’t properly observed by the integration tests. This commit fixes a prior bug that wouldn’t allow the test to copy the prior revoked channels to the current state. --- lnd_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lnd_test.go b/lnd_test.go index 658fe4f10..cd3e7ba1c 100644 --- a/lnd_test.go +++ b/lnd_test.go @@ -1536,7 +1536,7 @@ func testRevokedCloseRetribution(net *networkHarness, t *harnessTest) { // With the temporary file created, copy Bob's current state into the // temporary file we created above. Later after more updates, we'll // restore this state. - bobDbPath := filepath.Join(net.Bob.cfg.DataDir, "simnet/channel.db") + bobDbPath := filepath.Join(net.Bob.cfg.DataDir, "simnet/bitcoin/channel.db") if err := copyFile(bobTempDbFile, bobDbPath); err != nil { t.Fatalf("unable to copy database files: %v", err) }