We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug Querying gasPrice without timeout judgment can cause the program to wait continuously
To Reproduce Steps to reproduce the behavior:
func TestTxMgrConfirmAtMinGasPrice(t *testing.T) { t.Parallel() h := newTestHarness() gasPricer := newGasPricer(1) updateGasPrice := func(ctx context.Context) (*types.Transaction, error) { gasTipCap, gasFeeCap := gasPricer.sample() for i := 0; i <= 3; i++ { fmt.Printf("sleep %v \n", i+1) time.Sleep(60 * time.Second) } return types.NewTx(&types.DynamicFeeTx{ GasTipCap: gasTipCap, GasFeeCap: gasFeeCap, }), nil } . . .
go test -run TestTxMgrConfirmAtMinGasPrice txmgr/txmgr_test.go -v
Expected behavior go test -run TestTxMgrConfirmAtMinGasPrice txmgr/txmgr_test.go -v
Screenshots
(anaconda3)➜ mt-batcher git:(develop) ✗ go test -run TestTxMgrConfirmAtMinGasPrice txmgr/txmgr_test.go -v === RUN TestTxMgrConfirmAtMinGasPrice === PAUSE TestTxMgrConfirmAtMinGasPrice === CONT TestTxMgrConfirmAtMinGasPrice sleep 1 sleep 2 sleep 3 sleep 4 --- PASS: TestTxMgrConfirmAtMinGasPrice (480.00s) PASS ok command-line-arguments 480.142s
The text was updated successfully, but these errors were encountered:
guoshijiang
No branches or pull requests
Describe the bug
Querying gasPrice without timeout judgment can cause the program to wait continuously
To Reproduce
Steps to reproduce the behavior:
Expected behavior
go test -run TestTxMgrConfirmAtMinGasPrice txmgr/txmgr_test.go -v
Screenshots
The text was updated successfully, but these errors were encountered: