Skip to content

Commit

Permalink
Merge branch 'large-tiles-aggregation' into linas/large-tiles-aggrega…
Browse files Browse the repository at this point in the history
…tion-1
  • Loading branch information
linasm committed Jul 23, 2020
2 parents c1de7cd + c4dc67b commit 51c43b9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/dbnode/storage/index_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ func verifyFlushForShards(
mockFlush = persist.NewMockIndexFlush(ctrl)
shardMap = make(map[uint32]struct{})
now = time.Now()
warmBlockStart = now.Truncate(idx.blockSize)
warmBlockStart = now.Add(-idx.bufferPast).Truncate(idx.blockSize)
mockShards []*MockdatabaseShard
dbShards []databaseShard
numBlocks int
Expand Down Expand Up @@ -415,7 +415,7 @@ func verifyFlushForShards(
NamespaceMetadata: idx.nsMetadata,
BlockStart: blockStart,
FileSetType: persist.FileSetFlushType,
Shards: map[uint32]struct{}{0: struct{}{}},
Shards: map[uint32]struct{}{0: {}},
IndexVolumeType: idxpersist.DefaultIndexVolumeType,
})).Return(preparedPersist, nil)

Expand All @@ -436,8 +436,8 @@ func verifyFlushForShards(
mockBlock.EXPECT().EvictMutableSegments().Return(nil)
}
require.NoError(t, idx.WarmFlush(mockFlush, dbShards))
require.Equal(t, persistClosedTimes, numBlocks)
require.Equal(t, persistCalledTimes, numBlocks)
require.Equal(t, numBlocks, persistClosedTimes)
require.Equal(t, numBlocks, persistCalledTimes)
}

type testIndex struct {
Expand Down

0 comments on commit 51c43b9

Please sign in to comment.