Skip to content

Commit 53d27cc

Browse files
committed
fix tests
1 parent 460acc3 commit 53d27cc

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

google-cloud-datastore/src/test/java/com/google/cloud/datastore/it/StatementExecutor.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ final void execute(Tuple<String, Statement>... tuples) throws Exception {
5454
for (Tuple<String, Statement> tuple : tuples) {
5555
String groupId = tuple.x();
5656
Statement statement = tuple.y();
57-
Thread.sleep(10000);
5857
Future<?> future = executorService.submit(statement::execute);
5958
try {
6059
// waiting for statement to execute
@@ -83,7 +82,7 @@ private boolean transactionConflict(Exception exception) {
8382
&& exception.getCause().getClass() == DatastoreException.class
8483
&& exception
8584
.getMessage()
86-
.contains("contention"); // exception raise coz of optimistic concurrency
85+
.contains("Conflict"); // exception raise coz of optimistic concurrency
8786
}
8887

8988
interface Statement {

0 commit comments

Comments
 (0)