We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 184269e commit cc60f50Copy full SHA for cc60f50
test/framework/src/test/java/org/elasticsearch/search/MockSearchServiceTests.java
@@ -12,12 +12,10 @@
12
import org.elasticsearch.search.SearchService.ReaderContextId;
13
import org.elasticsearch.test.ESTestCase;
14
15
-import static org.mockito.Mockito.mock;
16
-
17
public class MockSearchServiceTests extends ESTestCase {
18
19
public void testAssertNoInFlightContext() {
20
- ReaderContextId readerId = mock(ReaderContextId.class);
+ ReaderContextId readerId = new ReaderContextId("sessionId", 1L);
21
MockSearchService.addActiveContext(readerId);
22
try {
23
Throwable e = expectThrows(AssertionError.class, MockSearchService::assertNoInFlightContext);
0 commit comments