From 766c91a3c0e0476095c389068181d6b3f2a1af2e Mon Sep 17 00:00:00 2001 From: Anna Headley <845363+hackartisan@users.noreply.github.com> Date: Wed, 27 Nov 2024 15:35:50 -0500 Subject: [PATCH] Set up search tests individually So that you can index extra records if needed and have them cleaned up before the next test run closes #280 --- test/dpul_collections_web/live/search_live_test.exs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/dpul_collections_web/live/search_live_test.exs b/test/dpul_collections_web/live/search_live_test.exs index fc6311b2..edd4dc5b 100644 --- a/test/dpul_collections_web/live/search_live_test.exs +++ b/test/dpul_collections_web/live/search_live_test.exs @@ -5,7 +5,7 @@ defmodule DpulCollectionsWeb.SearchLiveTest do alias DpulCollections.Solr @endpoint DpulCollectionsWeb.Endpoint - setup_all do + setup do Solr.add(SolrTestSupport.mock_solr_documents(), active_collection()) Solr.commit(active_collection()) on_exit(fn -> Solr.delete_all(active_collection()) end)