Skip to content

Commit

Permalink
test update
Browse files Browse the repository at this point in the history
  • Loading branch information
axenteoctavian committed Dec 13, 2024
1 parent dfa76cb commit 77b90c3
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions process/block/sovereignChainBlock_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)

Check failure on line 683 in process/block/sovereignChainBlock_test.go

View workflow job for this annotation

GitHub Actions / golangci linter

ineffectual assignment to ok (ineffassign)
require.Equal(t, expectedExtendedShardHeaderHashes, sovHdr.GetExtendedShardHeaderHashes())
})

// TODO test createAllMiniBlocks
// TODO test createMiniBlockHeaderHandlers
// TODO test SetExtendedShardHeaderHashes
// TODO test SetMiniBlockHeaderHandlers
}

0 comments on commit 77b90c3

Please sign in to comment.