@@ -330,7 +330,7 @@ func TestSuggestTipCapMinGas(t *testing.T) {
330330 chainConfig : params .TestChainConfig ,
331331 numBlocks : 3 ,
332332 genBlock : testGenBlock (t , 500 , 50 ),
333- expectedTip : big . NewInt ( 0 ) ,
333+ expectedTip : DefaultMinPrice ,
334334 }, defaultOracleConfig ())
335335}
336336
@@ -390,7 +390,7 @@ func TestSuggestTipCapMaxBlocksSecondsLookback(t *testing.T) {
390390
391391// Regression test to ensure the last estimation of base fee is not used
392392// for the block immediately following a fee configuration update.
393- func TestSuggestGasPriceAfterFeeConfigUpdate (t * testing.T ) {
393+ func TestEstimateBaseFeeAfterFeeConfigUpdate (t * testing.T ) {
394394 require := require .New (t )
395395 config := Config {
396396 Blocks : 20 ,
@@ -417,7 +417,7 @@ func TestSuggestGasPriceAfterFeeConfigUpdate(t *testing.T) {
417417 defer backend .teardown ()
418418 oracle , err := NewOracle (backend , config )
419419 require .NoError (err )
420- got , err := oracle .SuggestPrice (context .Background ())
420+ got , err := oracle .EstimateBaseFee (context .Background ())
421421 require .NoError (err )
422422 require .Equal (chainConfigExtra .FeeConfig .MinBaseFee , got )
423423
@@ -447,8 +447,8 @@ func TestSuggestGasPriceAfterFeeConfigUpdate(t *testing.T) {
447447 _ , err = backend .chain .InsertChain (blocks )
448448 require .NoError (err )
449449
450- // verify the suggested price follows the new fee config.
451- got , err = oracle .SuggestPrice (context .Background ())
450+ // verify the base fee estimation follows the new fee config.
451+ got , err = oracle .EstimateBaseFee (context .Background ())
452452 require .NoError (err )
453453 require .Equal (highFeeConfig .MinBaseFee , got )
454454}
0 commit comments