From 4f43e4bd5a663d23f5cf632290efe429892245f5 Mon Sep 17 00:00:00 2001 From: Keith Massey Date: Mon, 4 Dec 2023 10:05:16 -0600 Subject: [PATCH] fixing TransportSamlLogoutActionTests --- .../security/action/saml/TransportSamlLogoutActionTests.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/x-pack/plugin/security/src/test/java/org/elasticsearch/xpack/security/action/saml/TransportSamlLogoutActionTests.java b/x-pack/plugin/security/src/test/java/org/elasticsearch/xpack/security/action/saml/TransportSamlLogoutActionTests.java index fb3296d6dec7b..b75d9ae782761 100644 --- a/x-pack/plugin/security/src/test/java/org/elasticsearch/xpack/security/action/saml/TransportSamlLogoutActionTests.java +++ b/x-pack/plugin/security/src/test/java/org/elasticsearch/xpack/security/action/saml/TransportSamlLogoutActionTests.java @@ -196,6 +196,11 @@ public void setup() throws Exception { ((Runnable) inv.getArguments()[1]).run(); return null; }).when(securityIndex).prepareIndexIfNeededThenExecute(any(Consumer.class), any(Runnable.class)); + doAnswer(inv -> { + ((Runnable) inv.getArguments()[1]).run(); + ((Runnable) inv.getArguments()[2]).run(); + return null; + }).when(securityIndex).prepareIndexIfNeededThenExecute(any(Consumer.class), any(Runnable.class), any(Runnable.class)); doAnswer(inv -> { ((Runnable) inv.getArguments()[1]).run(); return null;