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