Skip to content

Commit

Permalink
Fix bad tests
Browse files Browse the repository at this point in the history
  • Loading branch information
terencechain committed Apr 2, 2024
1 parent 1a5d4e4 commit 416a1e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions beacon-chain/rpc/eth/beacon/handlers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3652,9 +3652,9 @@ func TestServer_broadcastBlobSidecars(t *testing.T) {
blk, err := blocks.NewSignedBeaconBlock(b.Block)
require.NoError(t, err)
require.NoError(t, server.broadcastSeenBlockSidecars(context.Background(), blk, b.GetDeneb().Blobs, b.GetDeneb().KzgProofs))
require.LogsDoNotContain(t, hook, "Broadcasted already seen block blob sidecar")
require.LogsDoNotContain(t, hook, "Broadcasted blob sidecar for already seen block")

server.FinalizationFetcher = &chainMock.ChainService{NotFinalized: false}
require.NoError(t, server.broadcastSeenBlockSidecars(context.Background(), blk, b.GetDeneb().Blobs, b.GetDeneb().KzgProofs))
require.LogsContain(t, hook, "Broadcasted already seen block blob sidecar")
require.LogsContain(t, hook, "Broadcasted blob sidecar for already seen block")
}

0 comments on commit 416a1e9

Please sign in to comment.