DATACASS-628 - Polishing.

Add synchronization to inserts to properly await completion before querying data.
This commit is contained in:
Mark Paluch
2019-02-15 11:28:21 +01:00
parent 1437bf347c
commit a7a104e1fd

View File

@@ -317,7 +317,7 @@ public class AsyncCassandraTemplateIntegrationTests extends AbstractKeyspaceCrea
for (int count = 0; count < 100; count++) {
User user = new User("heisenberg" + count, "Walter", "White");
expectedIds.add(user.getId());
template.insert(user);
getUninterruptibly(template.insert(user));
}
Set<String> ids = new HashSet<>();