Skip to content

Commit

Permalink
Merge pull request #3930 from sisuresh/fix-test
Browse files Browse the repository at this point in the history
Fix flaky test

Reviewed-by: marta-lokhova
  • Loading branch information
latobarita authored Sep 12, 2023
2 parents 3acf6dd + f07f426 commit 8a9cb92
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -511,8 +511,13 @@ class ApplyBucketsWorkModifyEntry : public ApplyBucketsWork
{
ContractCodeEntry const& cc = mEntry.data.contractCode();
entry.lastModifiedLedgerSeq = mEntry.lastModifiedLedgerSeq;
entry.data.contractCode() =
LedgerTestUtils::generateValidContractCodeEntry(5);

while (entry.data.contractCode().code ==
mEntry.data.contractCode().code)
{
entry.data.contractCode() =
LedgerTestUtils::generateValidContractCodeEntry(5);
}

entry.data.contractCode().hash = cc.hash;
}
Expand Down

0 comments on commit 8a9cb92

Please sign in to comment.