You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@phoenix.apache.org by st...@apache.org on 2024/01/16 12:23:33 UTC

(phoenix) branch 5.1 updated: PHOENIX-7176 QueryTimeoutIT#testQueryTimeout fails with incorrect error message (addendum: accept exactly 1000ms in timeout check)

This is an automated email from the ASF dual-hosted git repository.

stoty pushed a commit to branch 5.1
in repository https://gitbox.apache.org/repos/asf/phoenix.git


The following commit(s) were added to refs/heads/5.1 by this push:
     new 3bb97d476f PHOENIX-7176 QueryTimeoutIT#testQueryTimeout fails with incorrect error message (addendum: accept exactly 1000ms in timeout check)
3bb97d476f is described below

commit 3bb97d476f423c69414ab4a65323a0f69e27bbb4
Author: Aron Meszaros <me...@gmail.com>
AuthorDate: Tue Jan 16 11:13:19 2024 +0100

    PHOENIX-7176 QueryTimeoutIT#testQueryTimeout fails with incorrect error message (addendum: accept exactly 1000ms in timeout check)
---
 .../src/it/java/org/apache/phoenix/end2end/QueryTimeoutIT.java         | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/phoenix-core/src/it/java/org/apache/phoenix/end2end/QueryTimeoutIT.java b/phoenix-core/src/it/java/org/apache/phoenix/end2end/QueryTimeoutIT.java
index 4103655e16..0ac5d50c10 100644
--- a/phoenix-core/src/it/java/org/apache/phoenix/end2end/QueryTimeoutIT.java
+++ b/phoenix-core/src/it/java/org/apache/phoenix/end2end/QueryTimeoutIT.java
@@ -130,7 +130,8 @@ public class QueryTimeoutIT extends BaseTest {
         } catch (SQLTimeoutException e) {
             long elapsedTimeMillis = System.currentTimeMillis() - startTime;
             assertEquals(SQLExceptionCode.OPERATION_TIMED_OUT.getErrorCode(), e.getErrorCode());
-            assertTrue(elapsedTimeMillis > 1000);
+            assertTrue("Total time of query was " + elapsedTimeMillis + " ms, but expected to be greater or equal to 1000",
+                    elapsedTimeMillis >= 1000);
         }
         conn.close();
     }