Skip to content
This repository was archived by the owner on May 8, 2026. It is now read-only.

Commit a40337b

Browse files
deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v3.1.0 (#1436)
* deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v3.1.0 * fix: update the pubsub fake executor to cancel a pending callables future when cancelled Co-authored-by: hannahrogers-google <hannahrogers@google.com>
1 parent 786c493 commit a40337b

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/FakeScheduledExecutorService.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,7 @@ public int compareTo(Delayed o) {
258258
@Override
259259
public boolean cancel(boolean mayInterruptIfRunning) {
260260
synchronized (this) {
261+
future.cancel(mayInterruptIfRunning);
261262
cancelled.set(true);
262263
return !done.get();
263264
}

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
<dependency>
6262
<groupId>com.google.cloud</groupId>
6363
<artifactId>google-cloud-shared-dependencies</artifactId>
64-
<version>3.0.6</version>
64+
<version>3.1.0</version>
6565
<type>pom</type>
6666
<scope>import</scope>
6767
</dependency>

0 commit comments

Comments
 (0)