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

[4.0] Test: Fix ship test to wait on correct transaction #1388

Merged
merged 1 commit into from
Jul 11, 2023

Conversation

heifner
Copy link
Member

@heifner heifner commented Jul 11, 2023

state_history_plugin test ship_streamer_test.py was not waiting on the correct transaction to be included in a block.

Resolves #1383

@heifner heifner added the OCI Work exclusive to OCI team label Jul 11, 2023
@heifner heifner linked an issue Jul 11, 2023 that may be closed by this pull request
@@ -137,7 +137,7 @@ def getLatestSnapshot(nodeId):
nonProdNode.waitForTransBlockIfNeeded(trans, True, exitOnError=True)
for account in accounts:
Print(f"Transfer funds {transferAmount} from account {cluster.eosioAccount.name} to {account.name}")
nonProdNode.transferFunds(cluster.eosioAccount, account, transferAmount, "test transfer", waitForTransBlock=False)
trans=nonProdNode.transferFunds(cluster.eosioAccount, account, transferAmount, "test transfer", waitForTransBlock=False)
Copy link
Member

Choose a reason for hiding this comment

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

This clobbers trans for each transfer, thus only waiting on the last one. I guess no material problem?

Copy link
Member Author

Choose a reason for hiding this comment

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

That is the idea. Only wait on the last one. Although, you could argue that it would be best to verify they all make it, but this is certainly faster than that.

Copy link
Member

Choose a reason for hiding this comment

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

Although, you could argue that it would be best to verify they all make it,

yeah.. that's kind of where I was thinking. But it seems unnecessary for this test

@heifner heifner merged commit 49212f0 into release/4.0 Jul 11, 2023
16 checks passed
@heifner heifner deleted the GH-1383-ship-test-4.0 branch July 11, 2023 18:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OCI Work exclusive to OCI team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Test Failure: ship_streamer_test
4 participants