-
Notifications
You must be signed in to change notification settings - Fork 39
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 statedb error during mempool #1702
Changes from all commits
c0011cc
23b6a4e
f024672
ba0875b
b4a9e71
d33b7bd
4b2019a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -583,7 +583,7 @@ func transferETHToAddress(client *ethclient.Client, wallet wallet.Wallet, toAddr | |
if err != nil { | ||
return nil, err | ||
} | ||
return integrationCommon.AwaitReceiptEth(context.Background(), client, signedTx.Hash(), 2*time.Second) | ||
return integrationCommon.AwaitReceiptEth(context.Background(), client, signedTx.Hash(), 20*time.Second) | ||
Comment on lines
583
to
+586
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The timeout duration for |
||
} | ||
|
||
func subscribeToEvents(addresses []gethcommon.Address, topics [][]gethcommon.Hash, client *ethclient.Client, logs *[]types.Log) ethereum.Subscription { //nolint:unparam | ||
|
Original file line number | Diff line number | Diff line change | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -289,7 +289,7 @@ func (s *Simulation) prefundL1Accounts() { | |||||||||||||
func (s *Simulation) checkHealthStatus() { | ||||||||||||||
for _, client := range s.RPCHandles.ObscuroClients { | ||||||||||||||
if healthy, err := client.Health(); !healthy || err != nil { | ||||||||||||||
panic("Client is not healthy") | ||||||||||||||
panic("Client is not healthy: " + err.Error()) | ||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Potential nil pointer dereference when calling - panic("Client is not healthy: " + err.Error())
+ if err != nil {
+ panic("Client is not healthy: " + err.Error())
+ } else {
+ panic("Client is not healthy and no error was provided")
+ } Committable suggestion
Suggested change
|
||||||||||||||
} | ||||||||||||||
} | ||||||||||||||
} | ||||||||||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The addition of the
defer
function to stop thefaucetContainer
is a good practice to ensure resources are cleaned up after the test is done. However, the error handling within thedefer
function could be improved by using the testing objectt
to log the error instead of printing it to stdout, which is more idiomatic in test cases.Committable suggestion