Skip to content

Commit f8bfb3a

Browse files
fix(GPO): tests (#938)
* fix(GPO): tests * fix `newTestBackend` * improve --------- Co-authored-by: HAOYUatHZ <haoyu@protonmail.com> Co-authored-by: HAOYUatHZ <37070449+HAOYUatHZ@users.noreply.github.com>
1 parent c6b46fb commit f8bfb3a

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

eth/gasprice/feehistory_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ func TestFeeHistory(t *testing.T) {
5151
{true, 1000, 1000, 2, rpc.PendingBlockNumber, nil, 32, 2, nil},
5252
{true, 1000, 1000, 2, rpc.PendingBlockNumber, []float64{0, 10}, 32, 2, nil},
5353
{false, 1000, 1000, 2, rpc.FinalizedBlockNumber, []float64{0, 10}, 24, 2, nil},
54-
{false, 1000, 1000, 2, rpc.SafeBlockNumber, []float64{0, 10}, 24, 2, nil},
54+
//{false, 1000, 1000, 2, rpc.SafeBlockNumber, []float64{0, 10}, 24, 2, nil}, // We currently do not use rpc.SafeBlockNumber
5555
}
5656
for i, c := range cases {
5757
config := Config{

eth/gasprice/gasprice_test.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -143,10 +143,12 @@ func newTestBackend(t *testing.T, londonBlock *big.Int, pending bool) *testBacke
143143
config.BernoulliBlock = londonBlock
144144
config.CurieBlock = londonBlock
145145
config.ShanghaiTime = nil
146+
config.DarwinTime = nil
146147
if londonBlock != nil {
147148
shanghaiTime := londonBlock.Uint64() * 12
148149
config.ShanghaiTime = &shanghaiTime
149-
config.DarwinTime = &shanghaiTime
150+
darwinTime := londonBlock.Uint64() * 12
151+
config.DarwinTime = &darwinTime
150152
}
151153

152154
config.TerminalTotalDifficulty = common.Big0

0 commit comments

Comments
 (0)