From 02488ebfb653c621939cae25c896e6ce45eb18e3 Mon Sep 17 00:00:00 2001 From: Zeke Hunter-Green Date: Thu, 21 Mar 2024 18:17:51 +0000 Subject: [PATCH] fix tests? --- backend/test/services/index/ElasticsearchResourcesITest.scala | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/backend/test/services/index/ElasticsearchResourcesITest.scala b/backend/test/services/index/ElasticsearchResourcesITest.scala index f740aca0..56f668ca 100644 --- a/backend/test/services/index/ElasticsearchResourcesITest.scala +++ b/backend/test/services/index/ElasticsearchResourcesITest.scala @@ -14,6 +14,7 @@ import test.integration.Helpers.stubControllerComponentsAsUser import test.{TestAnnotations, TestUserManagement, TestUserRegistration} import utils.IndexTestHelpers import utils.attempt.AttemptAwait._ +import services.MetricsService.{NoOpMetricsService} class ElasticsearchResourcesITest extends AnyFreeSpec with Matchers with ElasticsearchTestService with IndexTestHelpers { import TestUserManagement._ @@ -615,7 +616,8 @@ class ElasticsearchResourcesITest extends AnyFreeSpec with Matchers with Elastic val annotations = new TestAnnotations(usersToWorkspaces) val controllerComponents = stubControllerComponentsAsUser(reqUser.username, userManagement) - val search = new Search(controllerComponents, userManagement, elasticResources, annotations) + val metricsService = new NoOpMetricsService() + val search = new Search(controllerComponents, userManagement, elasticResources, annotations, metricsService) fn(search) }