test: factor in current chain during revoked close integration test

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.
This commit is contained in:
Olaoluwa Osuntokun 2017-05-02 20:38:03 -07:00
parent b89a39d341
commit 7d02eedef2
No known key found for this signature in database
GPG Key ID: 9CC5B105D03521A2

@ -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)
}