mirror of https://github.com/apache/druid.git
Merge pull request #2490 from guobingkun/better_printing
Integration tests: print expected results in json
This commit is contained in:
commit
5ba8893fa3
|
@ -96,8 +96,9 @@ public class TestQueryHelper
|
|||
List<Map<String, Object>> result = queryClient.query(url, queryWithResult.getQuery());
|
||||
if (!QueryResultVerifier.compareResults(result, queryWithResult.getExpectedResults())) {
|
||||
LOG.error(
|
||||
"Failed while executing %s actualResults : %s",
|
||||
queryWithResult,
|
||||
"Failed while executing query %s \n expectedResults: %s \n actualResults : %s",
|
||||
queryWithResult.getQuery(),
|
||||
jsonMapper.writeValueAsString(queryWithResult.getExpectedResults()),
|
||||
jsonMapper.writeValueAsString(result)
|
||||
);
|
||||
failed = true;
|
||||
|
|
Loading…
Reference in New Issue