Skip to content

Commit

Permalink
Update location of snapshots folder in IT
Browse files Browse the repository at this point in the history
FAB-18288 #done

Signed-off-by: Will Lahti <[email protected]>
  • Loading branch information
wlahti authored and Brett Logan committed Oct 23, 2020
1 parent e071f57 commit 60b5053
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions integration/ledger/snapshot_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ var _ bool = Describe("Snapshot Generation and Bootstrap", func() {

By("verifying snapshot completed on org2peer1")
verifyNoPendingSnapshotRequest(setup.network, org2peer1, testchannelID)
snapshotDir := filepath.Join(setup.network.PeerLedgerDir(org2peer1), "snapshots/completed", testchannelID, strconv.Itoa(blockNumForNextSnapshot))
snapshotDir := filepath.Join(setup.network.PeerDir(org2peer1), "filesystem", "snapshots", "completed", testchannelID, strconv.Itoa(blockNumForNextSnapshot))

// test 6: bootstrap a peer in a different org from the new snapshot
By("starting a peer (org1peer1) in existing org1 (couchdb)")
Expand Down Expand Up @@ -439,8 +439,8 @@ func generateAndCompareSnapshots(n *nwo.Network, peer1, peer2 *nwo.Peer, blockNu
verifyNoPendingSnapshotRequest(n, peer2, testchannelID)

By("comparing snapshot metadata generated on different peers for the same block number")
snapshotDir1 := filepath.Join(n.PeerLedgerDir(peer1), "snapshots/completed", testchannelID, strconv.Itoa(blockNumForSnapshot))
snapshotDir2 := filepath.Join(n.PeerLedgerDir(peer2), "snapshots/completed", testchannelID, strconv.Itoa(blockNumForSnapshot))
snapshotDir1 := filepath.Join(n.PeerDir(peer1), "filesystem", "snapshots", "completed", testchannelID, strconv.Itoa(blockNumForSnapshot))
snapshotDir2 := filepath.Join(n.PeerDir(peer2), "filesystem", "snapshots", "completed", testchannelID, strconv.Itoa(blockNumForSnapshot))
compareSnapshotMetadata(snapshotDir1, snapshotDir2)

return snapshotDir1, snapshotDir2
Expand Down

0 comments on commit 60b5053

Please sign in to comment.