@@ -15,16 +15,16 @@ func TestGasEstimatorEscalation_NonBridge(t *testing.T) {
1515 c := NewClient (log .NewNopLogger (), "0.001loya" )
1616 bucket := "test-non-bridge"
1717
18- require .Equal (t , 1.0 , c .gasEstimator .currentGasAdjustment (bucket ))
18+ require .Equal (t , 1.25 , c .gasEstimator .currentGasAdjustment (bucket ))
1919 changed , from , to := c .gasEstimator .escalateGasLevel (bucket )
2020 require .True (t , changed )
21- require .Equal (t , 1.0 , from )
22- require .Equal (t , 1.25 , to )
23- require .Equal (t , 1.25 , c .gasEstimator .currentGasAdjustment (bucket ))
21+ require .Equal (t , 1.25 , from )
22+ require .Equal (t , 1.6 , to )
23+ require .Equal (t , 1.6 , c .gasEstimator .currentGasAdjustment (bucket ))
2424
2525 changed , from , to = c .gasEstimator .escalateGasLevel (bucket )
2626 require .True (t , changed )
27- require .Equal (t , 1.25 , from )
27+ require .Equal (t , 1.6 , from )
2828 require .Equal (t , 2.0 , to )
2929 require .Equal (t , 2.0 , c .gasEstimator .currentGasAdjustment (bucket ))
3030
@@ -53,12 +53,12 @@ func TestEscalationAffectsOnlyRelevantBucket(t *testing.T) {
5353 c := NewClient (log .NewNopLogger (), "0.001loya" )
5454
5555 otherBucket := "*oracletypes.MsgWithdrawTip"
56- require .Equal (t , 1.0 , c .gasEstimator .currentGasAdjustment (otherBucket ))
56+ require .Equal (t , 1.25 , c .gasEstimator .currentGasAdjustment (otherBucket ))
5757
5858 changed , _ , _ := c .gasEstimator .escalateGasLevel (spotPriceGasBucketKey )
5959 require .True (t , changed )
60- require .Equal (t , 1.25 , c .gasEstimator .currentGasAdjustment (spotPriceGasBucketKey ))
61- require .Equal (t , 1.0 , c .gasEstimator .currentGasAdjustment (otherBucket ))
60+ require .Equal (t , 1.6 , c .gasEstimator .currentGasAdjustment (spotPriceGasBucketKey ))
61+ require .Equal (t , 1.25 , c .gasEstimator .currentGasAdjustment (otherBucket ))
6262}
6363
6464func TestRetryPolicyMatrix (t * testing.T ) {
@@ -86,13 +86,13 @@ func TestResetAllGasLevelsToBase_IsLazy(t *testing.T) {
8686 c .gasEstimator .setEstimate (bucket , 111 )
8787 changed , _ , _ := c .gasEstimator .escalateGasLevel (bucket )
8888 require .True (t , changed )
89- require .Equal (t , 1.25 , c .gasEstimator .currentGasAdjustment (bucket ))
89+ require .Equal (t , 1.6 , c .gasEstimator .currentGasAdjustment (bucket ))
9090 estimate , ok := c .gasEstimator .getCachedEstimate (bucket )
9191 require .False (t , ok )
9292 require .Equal (t , uint64 (111 ), estimate )
9393
9494 c .resetAllGasLevelsToBase ()
95- require .Equal (t , 1.0 , c .gasEstimator .currentGasAdjustment (bucket ))
95+ require .Equal (t , 1.25 , c .gasEstimator .currentGasAdjustment (bucket ))
9696 _ , ok = c .gasEstimator .getCachedEstimate (bucket )
9797 require .False (t , ok )
9898}
0 commit comments