diff --git a/process/block/sovereignChainBlock_test.go b/process/block/sovereignChainBlock_test.go index 53e4af80a2..d750e43506 100644 --- a/process/block/sovereignChainBlock_test.go +++ b/process/block/sovereignChainBlock_test.go @@ -658,12 +658,14 @@ func TestSovereignShardProcessor_CreateBlock(t *testing.T) { scbp, err := blproc.NewSovereignChainBlockProcessor(sovArgs) require.Nil(t, err) + expectedExtendedShardHeaderHashes := [][]byte{[]byte("extHeader")} expectedSovHeader := &block.SovereignChainHeader{ Header: &block.Header{ Nonce: 37, Round: 38, Epoch: currentEpoch, }, + ExtendedShardHeaderHashes: expectedExtendedShardHeaderHashes, } doesHaveTime := func() bool { return true @@ -678,10 +680,7 @@ func TestSovereignShardProcessor_CreateBlock(t *testing.T) { require.Equal(t, expectedSovHeader, hdr) require.Nil(t, err) require.Equal(t, expectedBusyIdleSequencePerCall, busyIdleCalled) + sovHdr, ok := hdr.(data.SovereignChainHeaderHandler) + require.Equal(t, expectedExtendedShardHeaderHashes, sovHdr.GetExtendedShardHeaderHashes()) }) - - // TODO test createAllMiniBlocks - // TODO test createMiniBlockHeaderHandlers - // TODO test SetExtendedShardHeaderHashes - // TODO test SetMiniBlockHeaderHandlers }