From 2d9e3e2234e0d49028cbc146c6081293d105365d Mon Sep 17 00:00:00 2001 From: kev Date: Sat, 20 Jun 2020 17:18:45 +0300 Subject: [PATCH] reduce build time --- iterator_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/iterator_test.go b/iterator_test.go index cbaf6bec1..0fa45cd93 100644 --- a/iterator_test.go +++ b/iterator_test.go @@ -201,12 +201,14 @@ func TestIteratePrefix(t *testing.T) { } t.Run("With Default options", func(t *testing.T) { + t.Parallel() runBadgerTest(t, nil, func(t *testing.T, db *DB) { testIteratorPrefix(t, db) }) }) t.Run("With Block Offsets in Cache", func(t *testing.T) { + t.Parallel() opts := getTestOptions("") opts = opts.WithKeepBlockIndicesInCache(true) runBadgerTest(t, &opts, func(t *testing.T, db *DB) { @@ -215,6 +217,7 @@ func TestIteratePrefix(t *testing.T) { }) t.Run("With Block Offsets and Blocks in Cache", func(t *testing.T) { + t.Parallel() opts := getTestOptions("") opts = opts.WithKeepBlockIndicesInCache(true).WithKeepBlocksInCache(true) runBadgerTest(t, &opts, func(t *testing.T, db *DB) { @@ -223,6 +226,7 @@ func TestIteratePrefix(t *testing.T) { }) t.Run("With Blocks in Cache", func(t *testing.T) { + t.Parallel() opts := getTestOptions("") opts = opts.WithKeepBlocksInCache(true) runBadgerTest(t, &opts, func(t *testing.T, db *DB) {