erigon-pulse/turbo/builder/latest_block_built_test.go
Håvard Anda Estensen 4873502818
turbo: run tests in parallel (#8738)
Tests that don't affect each other should run in parallel
2023-11-16 16:29:31 +07:00

17 lines
336 B
Go

package builder
import (
"testing"
"github.com/ledgerwatch/erigon/core/types"
"github.com/stretchr/testify/assert"
)
func TestLatestBlockBuilt(t *testing.T) {
t.Parallel()
s := NewLatestBlockBuiltStore()
b := types.NewBlockWithHeader(&types.Header{})
s.AddBlockBuilt(b)
assert.Equal(t, b.Header(), s.BlockBuilt().Header())
}