This is an automated email from the ASF dual-hosted git repository.
absurdfarce pushed a commit to branch 4.x
in repository https://gitbox.apache.org/repos/asf/cassandra-java-driver.git
The following commit(s) were added to refs/heads/4.x by this push:
new 5ee12acff ninja-fix Various test fixes
5ee12acff is described below
commit 5ee12acfff720047db7611a6f54450c1646031a3
Author: absurdfarce <[email protected]>
AuthorDate: Tue Sep 3 16:06:04 2024 -0500
ninja-fix Various test fixes
---
.../core/util/concurrent/CompletableFuturesTest.java | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
diff --git
a/core/src/test/java/com/datastax/oss/driver/internal/core/util/concurrent/CompletableFuturesTest.java
b/core/src/test/java/com/datastax/oss/driver/internal/core/util/concurrent/CompletableFuturesTest.java
index 8a710e02d..04f96f185 100644
---
a/core/src/test/java/com/datastax/oss/driver/internal/core/util/concurrent/CompletableFuturesTest.java
+++
b/core/src/test/java/com/datastax/oss/driver/internal/core/util/concurrent/CompletableFuturesTest.java
@@ -1,6 +1,24 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
package com.datastax.oss.driver.internal.core.util.concurrent;
import static org.assertj.core.api.Assertions.assertThat;
+import static org.junit.Assert.fail;
import java.util.Arrays;
import java.util.concurrent.CompletableFuture;
@@ -22,6 +40,7 @@ public class CompletableFuturesTest {
CompletableFutures.allSuccessful(Arrays.asList(future1, future2))
.toCompletableFuture()
.get(1, TimeUnit.SECONDS);
+ fail();
} catch (ExecutionException e) {
assertThat(e.getCause()).isEqualTo(error);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]