mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-09 23:48:06 -05:00
Add a span to block-by-slot (#2184)
* Add a span to block-by-slot * /goroutinez
This commit is contained in:
@@ -289,6 +289,7 @@ func TestProcessingBlocks_SkippedSlots(t *testing.T) {
|
||||
db := internal.SetupDB(t)
|
||||
defer internal.TeardownDB(t, db)
|
||||
setUpGenesisStateAndBlock(db, t)
|
||||
ctx := context.Background()
|
||||
|
||||
cfg := &Config{
|
||||
P2P: &mockP2P{},
|
||||
@@ -301,7 +302,7 @@ func TestProcessingBlocks_SkippedSlots(t *testing.T) {
|
||||
batchSize := 20
|
||||
expectedSlot := params.BeaconConfig().GenesisSlot + uint64(batchSize)
|
||||
ss.highestObservedSlot = expectedSlot
|
||||
blk, err := ss.db.BlockBySlot(params.BeaconConfig().GenesisSlot)
|
||||
blk, err := ss.db.BlockBySlot(ctx, params.BeaconConfig().GenesisSlot)
|
||||
if err != nil {
|
||||
t.Fatalf("Unable to get genesis block %v", err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user