Skip to content

Commit

Permalink
Fix purge private data integration test flake
Browse files Browse the repository at this point in the history
Prior test restarted peers.
Need to make sure all peers are up and connected before continuing to next test.

Signed-off-by: David Enyeart <[email protected]>
  • Loading branch information
denyeart committed Dec 15, 2023
1 parent a90bf5e commit d6d5dee
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions integration/pvtdatapurge/data_purge_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,10 @@ var _ = Describe("Pvtdata purge", func() {
marblechaincodeutil.AssertDoesNotExistInCollectionMPD(network, channelID, chaincode.Name, `test-marble-9-purge`, org3Peer1)

By("Adding two marbles, removing Org3 from the collection, purging the marbles, and confirming that they still got purged from Org3")

// Make sure all peers are up and connected after prior test, before continuing with this test
network.VerifyMembership(network.Peers, channelID)

marblechaincodeutil.AddMarble(network, orderer, channelID, chaincode.Name, `{"name":"test-marble-10-purge-after-ineligible", "color":"white", "size":4, "owner":"liz", "price":4}`, org2Peer0)
marblechaincodeutil.AddMarble(network, orderer, channelID, chaincode.Name, `{"name":"test-marble-11-purge-after-ineligible", "color":"orange", "size":80, "owner":"clive", "price":88}`, org2Peer0)

Expand Down

0 comments on commit d6d5dee

Please sign in to comment.