@@ -78,7 +78,7 @@ withSearch' modScribeCfg = withResource (setupSearch modScribeCfg) teardownSearc
7878esTests :: TestTree
7979esTests = testGroup "elasticsearch scribe"
8080 [
81− withSearch $ \setup -> testCase "it flushes to elasticsearch" $ withTestLogging setup $ \done -> do
81+ withSearch' (\c -> c { essIndexSharding = NoIndexSharding}) $ \setup -> testCase "it flushes to elasticsearch" $ withTestLogging setup $ \done -> do
8282 $(logT) (ExampleCtx True) mempty InfoS "A test message"
8383 liftIO $ do
8484 void done
@@ -87,7 +87,7 @@ esTests = testGroup "elasticsearch scribe"
8787 let l = head logs
8888 l ^? key "_source" . key "msg" . _String @?= Just "A test message"
8989 l ^? key "_source" . key "data" . key "whatever::b" . _Bool @?= Just True
90− , withSearch' (\c -> c { essIndexSharding = DailyIndexSharding}) $ \setup -> testCase "date-based index sharding" $ do
90+ , withSearch $ \setup -> testCase "date-based index sharding" $ do
9191 let t1 = mkTime 2016 1 2 3 4 5
9292 fakeClock <- newTVarIO t1
9393 withTestLogging' (set logEnvTimer (readTVarIO fakeClock)) setup $ \done -> do