You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@phoenix.apache.org by ja...@apache.org on 2014/07/26 18:19:37 UTC

[7/9] git commit: PHOENIX-1122 Ensure TEST_PROPERTIES is not updated to prevent test flapping

PHOENIX-1122 Ensure TEST_PROPERTIES is not updated to prevent test flapping


Project: http://git-wip-us.apache.org/repos/asf/phoenix/repo
Commit: http://git-wip-us.apache.org/repos/asf/phoenix/commit/7d699d51
Tree: http://git-wip-us.apache.org/repos/asf/phoenix/tree/7d699d51
Diff: http://git-wip-us.apache.org/repos/asf/phoenix/diff/7d699d51

Branch: refs/heads/4.0
Commit: 7d699d5158093c737aa4d5cf1c6e71a89cdca1d0
Parents: 6b1d3c7
Author: James Taylor <jt...@salesforce.com>
Authored: Fri Jul 25 22:50:28 2014 -0700
Committer: James Taylor <jt...@salesforce.com>
Committed: Sat Jul 26 08:50:12 2014 -0700

----------------------------------------------------------------------
 .../test/java/org/apache/phoenix/compile/ViewCompilerTest.java  | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/phoenix/blob/7d699d51/phoenix-core/src/test/java/org/apache/phoenix/compile/ViewCompilerTest.java
----------------------------------------------------------------------
diff --git a/phoenix-core/src/test/java/org/apache/phoenix/compile/ViewCompilerTest.java b/phoenix-core/src/test/java/org/apache/phoenix/compile/ViewCompilerTest.java
index d2822a8..3ce2759 100644
--- a/phoenix-core/src/test/java/org/apache/phoenix/compile/ViewCompilerTest.java
+++ b/phoenix-core/src/test/java/org/apache/phoenix/compile/ViewCompilerTest.java
@@ -62,15 +62,18 @@ public class ViewCompilerTest extends BaseConnectionlessQueryTest {
             conn.createStatement().execute(view);
         }
         
+        StringBuilder buf = new StringBuilder();
         int count = 0;
         for (PTable table : conn.getMetaDataCache().getTables()) {
             if (table.getType() == PTableType.VIEW) {
                 assertEquals(viewType, table.getViewType());
                 conn.createStatement().execute("DROP VIEW " + table.getName().getString());
+                buf.append(' ');
+                buf.append(table.getName().getString());
                 count++;
             }
         }
-        assertEquals(views.length, count);
+        assertEquals("Expected " + views.length + ", but got " + count + ":"+ buf.toString(), views.length, count);
     }
 
     @Test