Elffuss BraidHub

kikocis/java-driver public

Check row is not null before other assertions
Changeset1ba747e5d00ef7aa283db71055751c49c07dacba1ca5ed2bd17797a7bceaa8b1
AuthorAndrew Tolbert <andrew.tolbert@datastax.com> · 2016-07-03 13:32 -05:00
Committerolim7t <omichallat+github@gmail.com> · 2016-07-13 13:12 -07:00
Parents5d7ca9e9fda6

Browse the files at this changeset

1 file changed

modified driver-core/src/test/java/com/datastax/driver/core/SpeculativeExecutionTest.java +1 −0
@@ -123,6 +123,7 @@
123123 ResultSet rs = session.execute(statement);
124124 Row row = rs.one();
125125
126+ assertThat(row).isNotNull();
126127 assertThat(row.getString("result")).isEqualTo("result1");
127128 assertThat(errors.getSpeculativeExecutions().getCount()).isEqualTo(execStartCount);
128129 assertThat(errors.getRetriesOnReadTimeout().getCount()).isEqualTo(retriesStartCount + 1);