Skip to content
Snippets Groups Projects
Commit 6862696e authored by Neelesh Thakur's avatar Neelesh Thakur
Browse files

conflicts

parent d6a55aeb
Branches
Tags
1 merge request!474optimize geo queries: remove redundant call
......@@ -513,27 +513,6 @@ public class QueryServiceImplTest {
}
}
@Test(expected = AppException.class)
public void testQueryBase_SocketTimeoutException_ListenerTimeout_throwsException() throws IOException {
SocketTimeoutException exception = mock(SocketTimeoutException.class);
Set<String> indexedTypes = new HashSet<>();
String dummyTimeoutMessage = "60,000 milliseconds timeout on connection";
doThrow(exception).when(client).search(any(), any(RequestOptions.class));
doReturn(dummyTimeoutMessage).when(exception).getMessage();
doReturn(indexedTypes).when(fieldMappingTypeService).getFieldTypes(eq(client), eq(fieldName), eq(indexName));
try {
sut.queryIndex(searchRequest);
} catch (AppException e) {
int errorCode = 504;
String errorMessage = "Request timed out after waiting for 1m";
validateAppException(e, errorCode, errorMessage);
throw (e);
}
}
@Test(expected = AppException.class)
public void testQueryBase_IOException_EmptyMessage_throwsException() throws IOException {
IOException exception = mock(IOException.class);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment