Tests: Disabling Watcher in LdapUserSearchSessionFactoryTests
Due to lingering threads when shutting down when running this in CI this disables watcher in this tests. It is really hard to reproduce to get the correct order of start/stop. The reason here is, that watcher is still starting and not finished, when stop is called on the plugin. Original commit: elastic/x-pack-elasticsearch@2de85bcba6
This commit is contained in:
parent
ba69889d8a
commit
9aa5c0ba62
|
@ -31,6 +31,7 @@ import org.elasticsearch.shield.authc.support.SecuredStringTests;
|
|||
import org.elasticsearch.shield.ssl.ClientSSLService;
|
||||
import org.elasticsearch.shield.support.NoOpLogger;
|
||||
import org.elasticsearch.test.junit.annotations.Network;
|
||||
import org.elasticsearch.watcher.WatcherPlugin;
|
||||
import org.elasticsearch.xpack.XPackPlugin;
|
||||
import org.junit.Before;
|
||||
|
||||
|
@ -514,6 +515,10 @@ public class LdapUserSearchSessionFactoryTests extends LdapTestCase {
|
|||
}
|
||||
builder.put("path.home", createTempDir());
|
||||
|
||||
// disable watcher, because watcher takes some time when starting, which results in problems
|
||||
// having a quick start/stop cycle like below
|
||||
builder.put(WatcherPlugin.ENABLED_SETTING, false);
|
||||
|
||||
try (Node node = new MockNode(builder.build(), Version.CURRENT, Collections.singletonList(XPackPlugin.class))) {
|
||||
node.start();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue