Skip to content

Commit 015ad9f

Browse files
committed
Disable entitlement enforcement for ScopedSettingsTests.
This test works by altering the logging on the root logger. With entitlements enabled, that will cause additional log statements to appear, which interferes with the test.
1 parent f880bbc commit 015ad9f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

server/src/test/java/org/elasticsearch/common/settings/ScopedSettingsTests.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
import org.elasticsearch.index.IndexModule;
2121
import org.elasticsearch.index.IndexVersion;
2222
import org.elasticsearch.test.ESTestCase;
23+
import org.elasticsearch.test.ESTestCase.WithoutEntitlements;
2324
import org.elasticsearch.transport.TransportSettings;
2425
import org.mockito.Mockito;
2526

@@ -48,6 +49,7 @@
4849
import static org.mockito.Mockito.verify;
4950
import static org.mockito.Mockito.verifyNoMoreInteractions;
5051

52+
@WithoutEntitlements // Entitlement logging interferes
5153
public class ScopedSettingsTests extends ESTestCase {
5254

5355
public void testResetSetting() {

0 commit comments

Comments
 (0)