From bc4983bf86d998d3aa44775b3945f745b48490a9 Mon Sep 17 00:00:00 2001 From: Seebs Date: Wed, 11 Jan 2023 13:08:10 -0600 Subject: [PATCH] fix typo in test setup --- executor_test.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/executor_test.go b/executor_test.go index cd7ab2197..537102456 100644 --- a/executor_test.go +++ b/executor_test.go @@ -1785,7 +1785,6 @@ func TestExecutor_Execute_SetValue(t *testing.T) { t.Fatalf("unexpected value: %v", value) } }) - } func TestExecutor_ExecuteTopK(t *testing.T) { @@ -1830,8 +1829,7 @@ func TestExecutor_ExecuteTopK(t *testing.T) { for _, tst := range tests { t.Run(tst.fieldName, func(t *testing.T) { - pilosa.OptFieldTypeMutex(pilosa.CacheTypeRanked, 10) - c.CreateField(t, c.Idx(), pilosa.IndexOptions{TrackExistence: true}, tst.fieldName) + c.CreateField(t, c.Idx(), pilosa.IndexOptions{TrackExistence: true}, tst.fieldName, pilosa.OptFieldTypeMutex(pilosa.CacheTypeRanked, 10)) c.ImportBits(t, c.Idx(), tst.fieldName, tst.bits) if result, err := c.GetNode(0).API.Query(context.Background(), &pilosa.QueryRequest{Index: c.Idx(), Query: tst.query}); err != nil { t.Fatal(err)