Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix latency unit test #4132

Merged
merged 4 commits into from May 31, 2022
Merged

Conversation

mariusmihaic
Copy link
Contributor

@mariusmihaic mariusmihaic commented May 30, 2022

  • Fixed sync time by increasing time.Sleep period
  • Fixed more activation flags

@mariusmihaic mariusmihaic changed the title FIX: Broken unit test Fix latency unit test May 30, 2022
bogdan-rosianu
bogdan-rosianu previously approved these changes May 30, 2022
nonce, round = integrationTests.WaitOperationToBeDone(t, nodes, nrRoundsToPropagateMultiShard, nonce, round, idxProposers)
time.Sleep(time.Second)
time.Sleep(2 * time.Second)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we have a const for these values

@mariusmihaic mariusmihaic self-assigned this May 30, 2022
Copy link
Contributor

@iulianpascalau iulianpascalau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

as found out with @SebastianMarian we should change the handleProcessMiniBlockInit as following:

func (tc *transactionCoordinator) handleProcessMiniBlockInit(miniBlockHash []byte) int {
	snapshot := tc.accounts.JournalLen()
	tc.InitProcessedTxsResults(miniBlockHash)
	tc.gasHandler.Reset(miniBlockHash)

	return snapshot
}

@mariusmihaic mariusmihaic merged commit 434ae2a into feat/liquid-staking May 31, 2022
@mariusmihaic mariusmihaic deleted the liquid-staking-fixes branch May 31, 2022 14:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants