Skip to content

Commit 4bc66b2

Browse files
committed
fix tests
1 parent 01adec3 commit 4bc66b2

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

module/builder/collection/builder_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1212,6 +1212,7 @@ func benchmarkBuildOn(b *testing.B, size int) {
12121212
err := suite.db.WithReaderBatchWriter(func(rw storage.ReaderBatchWriter) error {
12131213
return procedure.InsertClusterBlock(lctx, rw, unittest.ClusterProposalFromBlock(block))
12141214
})
1215+
require.NoError(b, err)
12151216
lctx.Release()
12161217

12171218
// finalize the block 80% of the time, resulting in a fork-rate of 20%

module/finalizedreader/finalizedreader_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ func TestFinalizedReader(t *testing.T) {
7272

7373
// should be able to retrieve the block
7474
finalized, err = reader.FinalizedBlockIDAtHeight(block2.Height)
75-
require.Error(t, err)
76-
require.True(t, errors.Is(err, storage.ErrNotFound), err)
75+
require.NoError(t, err)
76+
require.Equal(t, block2.ID(), finalized)
7777

7878
// should noop and no panic
7979
reader.BlockProcessable(block.ToHeader(), block2.ParentQC())

0 commit comments

Comments
 (0)