From ee0daa4a30a068b17cd8e14a7ca09701a0e64414 Mon Sep 17 00:00:00 2001 From: Piotr Findeisen Date: Mon, 23 May 2022 17:55:35 +0200 Subject: [PATCH] Remove redundant condition in test --- .../src/main/java/io/trino/testing/BaseConnectorTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/testing/trino-testing/src/main/java/io/trino/testing/BaseConnectorTest.java b/testing/trino-testing/src/main/java/io/trino/testing/BaseConnectorTest.java index 5f1f130344b8..8327fdf96dd7 100644 --- a/testing/trino-testing/src/main/java/io/trino/testing/BaseConnectorTest.java +++ b/testing/trino-testing/src/main/java/io/trino/testing/BaseConnectorTest.java @@ -2749,7 +2749,7 @@ public void testUpdateRowConcurrently() verifyConcurrentUpdateFailurePermissible(trinoException); } catch (Throwable verifyFailure) { - if (trinoException != e && verifyFailure != e) { + if (verifyFailure != e) { verifyFailure.addSuppressed(e); } throw verifyFailure; @@ -2808,7 +2808,7 @@ public void testInsertRowConcurrently() verifyConcurrentInsertFailurePermissible(trinoException); } catch (Throwable verifyFailure) { - if (trinoException != e && verifyFailure != e) { + if (verifyFailure != e) { verifyFailure.addSuppressed(e); } throw verifyFailure;