Elffuss BraidHub

kikocis/java-driver public

Small tweak to AsyncQueryTest for existing tests

Existing tests relied on the fact that the first row returned had v=1.
Changeset9c063932b3edf2f8349b7f08b6a05c7d592c6f99ddbd9b99f863e318bf1d78bc
AuthorAndrew Tolbert <andrew.tolbert@datastax.com> · 2016-08-15 15:10 -05:00
Committerolim7t <omichallat+github@gmail.com> · 2016-08-30 13:54 -07:00
Parentsc2c55074dc9c

Browse the files at this changeset

1 file changed

modified driver-core/src/test/java/com/datastax/driver/core/AsyncQueryTest.java +1 −1
@@ -49,7 +49,7 @@
4949 execute(
5050 String.format("create keyspace %s WITH replication = {'class': 'SimpleStrategy', 'replication_factor': 1}", keyspace),
5151 String.format("create table %s.foo(k int, v int, primary key (k, v))", keyspace));
52- for (int v = 0; v < 100; v++)
52+ for (int v = 1; v <= 100; v++)
5353 execute(String.format("insert into %s.foo (k, v) values (1, %d)", keyspace, v));
5454 }
5555 }