diff --git a/phoenix-ddb-rest/src/test/java/org/apache/phoenix/ddb/TestUtils.java b/phoenix-ddb-rest/src/test/java/org/apache/phoenix/ddb/TestUtils.java index 1bdc281..0c38eec 100644 --- a/phoenix-ddb-rest/src/test/java/org/apache/phoenix/ddb/TestUtils.java +++ b/phoenix-ddb-rest/src/test/java/org/apache/phoenix/ddb/TestUtils.java @@ -297,6 +297,11 @@ public static void assertEventIdsUnique(List records) { * may take several seconds to come up. Poll until ready or 30s elapses. */ public static void awaitPhoenixReady(String jdbcUrl) { + try { + DriverManager.getDriver(jdbcUrl); + } catch (SQLException e) { + PhoenixUtils.registerDriver(); + } final int maxAttempts = 30; SQLException last = null; for (int attempt = 1; attempt <= maxAttempts; attempt++) {