[ 
https://issues.apache.org/jira/browse/HADOOP-19150?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17837883#comment-17837883
 ] 

Steve Loughran commented on HADOOP-19150:
-----------------------------------------

actually, it should be 

{code}

AbfsRestOperationException e = intercept(AbfsRestOperationException, () -> 
fs.getFileStatus(new Path("/")));

+ all the asserts on the exception

{code}


> Test ITestAbfsRestOperationException#testAuthFailException is broken. 
> ----------------------------------------------------------------------
>
>                 Key: HADOOP-19150
>                 URL: https://issues.apache.org/jira/browse/HADOOP-19150
>             Project: Hadoop Common
>          Issue Type: Sub-task
>            Reporter: Mukund Thakur
>            Priority: Major
>
> {code:java}
> intercept(Exception.class,
>         () -> {
>           fs.getFileStatus(new Path("/"));
>         }); {code}
> Intercept shouldn't be used as there are assertions in catch statements. 
>  
> CC [~ste...@apache.org]  [~anujmodi2021] [~asrani_anmol] 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: common-issues-h...@hadoop.apache.org

Reply via email to