From a36cc72eafc378da5bf087f3fb41cd340f189f0c Mon Sep 17 00:00:00 2001 From: Ian Abbott Date: Fri, 22 Sep 2023 13:04:39 -0500 Subject: [PATCH] discovery_api error log test fix --- .../test/unit/discovery_api/event/event_handler_test.exs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/discovery_api/test/unit/discovery_api/event/event_handler_test.exs b/apps/discovery_api/test/unit/discovery_api/event/event_handler_test.exs index 0494e7ba1..1834b9fd9 100644 --- a/apps/discovery_api/test/unit/discovery_api/event/event_handler_test.exs +++ b/apps/discovery_api/test/unit/discovery_api/event/event_handler_test.exs @@ -241,7 +241,7 @@ defmodule DiscoveryApi.Event.EventHandlerTest do assert capture_log(fn -> Brook.Event.process(@instance_name, Brook.Event.new(type: dataset_delete(), data: dataset, author: :author)) - end) =~ ~r/^.*Dataset: #{dataset.id}; dataset_delete failed to process: #{inspect(error)}/ + end) =~ ~r/Dataset: #{dataset.id}; dataset_delete failed to process: %RuntimeError{message: \"ERR value is not an integer or out of range\"}/ end end