File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
google-cloud-pubsublite/src/test/java/com/google/cloud/pubsublite/it Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 6767
6868/* Integration tests for VPC-SC */
6969public class ITVPCNegativeTest {
70-
7170 private static final boolean IS_VPCSC_TEST =
7271 System .getenv ("GOOGLE_CLOUD_TESTS_IN_VPCSC" ) != null
7372 && System .getenv ("GOOGLE_CLOUD_TESTS_IN_VPCSC" ).equalsIgnoreCase ("true" );
@@ -330,7 +329,7 @@ public void deniedPublish() {
330329 } catch (TimeoutException t ) {
331330 fail ("Expected PERMISSION_DENIED CheckedApiException but got: " + t .toString ());
332331 } catch (IllegalStateException e ) {
333- checkExceptionForVPCError (toCanonical (e ));
332+ checkExceptionForVPCError (toCanonical (e . getCause () ));
334333 }
335334 }
336335
@@ -367,7 +366,7 @@ public void deniedSubscriber() {
367366 } catch (TimeoutException t ) {
368367 fail ("Expected PERMISSION_DENIED CheckedApiException but got: " + t .toString ());
369368 } catch (IllegalStateException e ) {
370- checkExceptionForVPCError (toCanonical (e ));
369+ checkExceptionForVPCError (toCanonical (e . getCause () ));
371370 }
372371 }
373372}
You can’t perform that action at this time.
0 commit comments