Skip to content

Commit

Permalink
fix: update exception handling exposed by underlying API translating …
Browse files Browse the repository at this point in the history
…changes (#53)

* fix: Incorrect exception handling exposed by underlying API translating ExecutionException differently.

* fix: reformat
  • Loading branch information
dpcollins-google committed Jan 26, 2021
1 parent 085897a commit 85d3119
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pom.xml
Expand Up @@ -17,12 +17,12 @@
<dependency>
<groupId>com.google.api.grpc</groupId>
<artifactId>proto-google-cloud-pubsublite-v1</artifactId>
<version>0.7.0</version>
<version>0.8.0</version>
</dependency>
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>google-cloud-pubsublite</artifactId>
<version>0.7.0</version>
<version>0.8.0</version>
</dependency>
<dependency>
<groupId>org.apache.kafka</groupId>
Expand Down
Expand Up @@ -31,7 +31,7 @@
import java.time.Duration;
import java.util.List;
import org.apache.kafka.common.PartitionInfo;
import org.apache.kafka.common.errors.BrokerNotAvailableException;
import org.apache.kafka.common.errors.InvalidRequestException;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
Expand Down Expand Up @@ -71,7 +71,7 @@ public void partitionsForFailure() {
ApiFutures.immediateFailedFuture(
new CheckedApiException(StatusCode.Code.FAILED_PRECONDITION).underlying));
assertThrows(
BrokerNotAvailableException.class,
InvalidRequestException.class,
() -> shared.partitionsFor(example(TopicPath.class), Duration.ofMillis(10)));
}

Expand Down

0 comments on commit 85d3119

Please sign in to comment.