diff --git a/server/pxf-hive/src/test/java/org/greenplum/pxf/plugins/hive/HiveMetastoreCompatibilityTest.java b/server/pxf-hive/src/test/java/org/greenplum/pxf/plugins/hive/HiveMetastoreCompatibilityTest.java index 1146bab982..ba0c9f7656 100644 --- a/server/pxf-hive/src/test/java/org/greenplum/pxf/plugins/hive/HiveMetastoreCompatibilityTest.java +++ b/server/pxf-hive/src/test/java/org/greenplum/pxf/plugins/hive/HiveMetastoreCompatibilityTest.java @@ -293,6 +293,17 @@ public void getTableFailedToConnectToMetastoreFiveRetries3rdSuccess() throws Exc } return null; }, + // placebo run through + // the second to last invocation keeps getting skipped so place this here as a placebo + // https://github.com/mockito/mockito/pull/2545 + invocation -> { + if (invocation.getMethod().getName().equals("get_table_req")) { + throw new TApplicationException("fallback ???"); + } else if (invocation.getMethod().getName().equals("get_table")) { + throw new TTransportException("oops. where's the metastore? ???"); + } + return null; + }, // final run through (retry 3 = success) invocation -> { if (invocation.getMethod().getName().equals("get_table_req")) {