mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-03 17:44:29 +00:00
16 lines
322 B
Go
16 lines
322 B
Go
|
package builder
|
||
|
|
||
|
import (
|
||
|
"testing"
|
||
|
|
||
|
"github.com/ledgerwatch/erigon/core/types"
|
||
|
"github.com/stretchr/testify/assert"
|
||
|
)
|
||
|
|
||
|
func TestLatestBlockBuilt(t *testing.T) {
|
||
|
s := NewLatestBlockBuiltStore()
|
||
|
b := types.NewBlockWithHeader(&types.Header{})
|
||
|
s.AddBlockBuilt(b)
|
||
|
assert.Equal(t, b.Header(), s.BlockBuilt().Header())
|
||
|
}
|