[
https://issues.apache.org/jira/browse/CASSANDRA-13238?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15901603#comment-15901603
]
Alex Petrov commented on CASSANDRA-13238:
-----------------------------------------
Committed as [60d3292b04f35f4cd27801448b089110cc7b5b19|
https://github.com/apache/cassandra/commit/60d3292b04f35f4cd27801448b089110cc7b5b19]
to 3.0 and merged up to
[3.11|https://github.com/apache/cassandra/commit/7707a0ed59e0f22a864b3c05515df7f1041e3c42]
and
[trunk|https://github.com/apache/cassandra/commit/b5a5fbe1f645cfdfab090ae6be4e82192d4e816d].
> Add actual row output to assertEmpty error message
> --------------------------------------------------
>
> Key: CASSANDRA-13238
> URL: https://issues.apache.org/jira/browse/CASSANDRA-13238
> Project: Cassandra
> Issue Type: Improvement
> Reporter: Alex Petrov
> Assignee: Alex Petrov
> Priority: Trivial
>
> We have several issues popping up every now and then that are hard to debug
> and the test failure messages aren't entirely helpful, for example:
> {code}
> java.lang.AssertionError: Expected empty result but got 1 rows:
> {code}
> It could be much better if we could have an actual output (what exactly the
> row that got returned appended to it:
> {code}
> java.lang.AssertionError: Expected empty result but got 1 rows:
> [row(value=null)]
> {code}
> The nice side-effect of this change is that now we will have a helper method
> that can nicely turn an {{UntypedResultSet}} into {{String}} (I apologise if
> I did overlooked one).
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)