From d7b389333012e89f346b11e7b8eeb36715a4a4b4 Mon Sep 17 00:00:00 2001 From: Bo Du Date: Fri, 28 Feb 2020 13:23:52 -0500 Subject: [PATCH] Fix tests. --- .../bootstrap/bootstrapper/commitlog/source_prop_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dbnode/storage/bootstrap/bootstrapper/commitlog/source_prop_test.go b/src/dbnode/storage/bootstrap/bootstrapper/commitlog/source_prop_test.go index 62c10c4476..529e5bd7db 100644 --- a/src/dbnode/storage/bootstrap/bootstrapper/commitlog/source_prop_test.go +++ b/src/dbnode/storage/bootstrap/bootstrapper/commitlog/source_prop_test.go @@ -348,9 +348,9 @@ func TestCommitLogSourcePropCorrectlyBootstrapsFromCommitlog(t *testing.T) { } // Assign the previously-determined bootstrap range to each known shard - shardTimeRanges := result.ShardTimeRanges{} + shardTimeRanges := result.NewShardTimeRanges() for shard := range allShardsMap { - shardTimeRanges[shard] = ranges + shardTimeRanges.Set(shard, ranges) } // Perform the bootstrap