mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-22 11:41:19 +00:00
4873502818
Tests that don't affect each other should run in parallel
17 lines
336 B
Go
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())
|
|
}
|