Add a span to block-by-slot (#2184)

* Add a span to block-by-slot

* /goroutinez
This commit is contained in:
Preston Van Loon
2019-04-05 19:19:27 -05:00
committed by GitHub
parent 9a6a275d3d
commit c925632cc9
11 changed files with 49 additions and 34 deletions

View File

@@ -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)
}