You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@fluo.apache.org by GitBox <gi...@apache.org> on 2022/12/02 22:45:13 UTC

[GitHub] [fluo] ctubbsii commented on a diff in pull request #1128: Use assertThrows in place of deprecated Exception.none()

ctubbsii commented on code in PR #1128:
URL: https://github.com/apache/fluo/pull/1128#discussion_r1038607240


##########
modules/integration-tests/src/main/java/org/apache/fluo/integration/impl/FailureIT.java:
##########
@@ -132,8 +129,7 @@ private void testRollbackManyImpl(boolean killTransactor) throws Exception {
 
     if (killTransactor) {
       Stamp commitTs = env.getSharedResources().getOracleClient().getStamp();
-      exception.expect(FluoException.class);
-      tx2.commitPrimaryColumn(cd, commitTs);
+      Assert.assertThrows(FluoException.class, () -> tx2.commitPrimaryColumn(cd, commitTs));

Review Comment:
   If it turns out that we do want to skip the rest, then it should be simple to do this to keep the same current behavior:
   
   ```suggestion
         Assert.assertThrows(FluoException.class, () -> tx2.commitPrimaryColumn(cd, commitTs));
         return;
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@fluo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org