mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-03 00:27:38 +00:00
Add construct_generic_block_test
to build file (#13195)
* Add construct_generic_block_test test to build file * Use the right require library --------- Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
This commit is contained in:
parent
4c381938e1
commit
5ba91a5216
@ -182,6 +182,7 @@ go_test(
|
||||
"assignments_test.go",
|
||||
"attester_test.go",
|
||||
"blocks_test.go",
|
||||
"construct_generic_block_test.go",
|
||||
"exit_test.go",
|
||||
"proposer_altair_test.go",
|
||||
"proposer_attestations_test.go",
|
||||
|
@ -5,8 +5,8 @@ import (
|
||||
|
||||
"github.com/prysmaticlabs/prysm/v4/consensus-types/blocks"
|
||||
ethpb "github.com/prysmaticlabs/prysm/v4/proto/prysm/v1alpha1"
|
||||
"github.com/prysmaticlabs/prysm/v4/testing/require"
|
||||
"github.com/prysmaticlabs/prysm/v4/testing/util"
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
||||
func TestConstructGenericBeaconBlock(t *testing.T) {
|
||||
@ -15,7 +15,7 @@ func TestConstructGenericBeaconBlock(t *testing.T) {
|
||||
// Test when sBlk or sBlk.Block() is nil
|
||||
t.Run("NilBlock", func(t *testing.T) {
|
||||
_, err := vs.constructGenericBeaconBlock(nil, nil, nil)
|
||||
require.ErrorContains(t, err, "block cannot be nil")
|
||||
require.ErrorContains(t, "block cannot be nil", err)
|
||||
})
|
||||
|
||||
// Test for Deneb version
|
||||
|
Loading…
Reference in New Issue
Block a user