You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@geode.apache.org by nn...@apache.org on 2017/05/15 17:28:02 UTC
geode git commit: GEODE-2905: Added extra logging to determine the
cause of failure.
Repository: geode
Updated Branches:
refs/heads/develop b72445bd7 -> d7fef91c0
GEODE-2905: Added extra logging to determine the cause of failure.
* Replaced assertTrue with assertEquals so that the commandResult is displayed in case of an error.
This closes #514
Project: http://git-wip-us.apache.org/repos/asf/geode/repo
Commit: http://git-wip-us.apache.org/repos/asf/geode/commit/d7fef91c
Tree: http://git-wip-us.apache.org/repos/asf/geode/tree/d7fef91c
Diff: http://git-wip-us.apache.org/repos/asf/geode/diff/d7fef91c
Branch: refs/heads/develop
Commit: d7fef91c0f04a9eb9a7819985bb1236f0da99149
Parents: b72445b
Author: nabarunnag <na...@cs.wisc.edu>
Authored: Sun May 14 11:17:02 2017 -0700
Committer: nabarun <nn...@pivotal.io>
Committed: Mon May 15 10:25:39 2017 -0700
----------------------------------------------------------------------
.../cache/lucene/internal/cli/LuceneIndexCommandsDUnitTest.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/geode/blob/d7fef91c/geode-lucene/src/test/java/org/apache/geode/cache/lucene/internal/cli/LuceneIndexCommandsDUnitTest.java
----------------------------------------------------------------------
diff --git a/geode-lucene/src/test/java/org/apache/geode/cache/lucene/internal/cli/LuceneIndexCommandsDUnitTest.java b/geode-lucene/src/test/java/org/apache/geode/cache/lucene/internal/cli/LuceneIndexCommandsDUnitTest.java
index 9e7b152..9ef3f28 100755
--- a/geode-lucene/src/test/java/org/apache/geode/cache/lucene/internal/cli/LuceneIndexCommandsDUnitTest.java
+++ b/geode-lucene/src/test/java/org/apache/geode/cache/lucene/internal/cli/LuceneIndexCommandsDUnitTest.java
@@ -459,7 +459,8 @@ public class LuceneIndexCommandsDUnitTest extends CliCommandTestBase {
String resultAsString = commandResultToString(commandResult);
writeToLog("Result String :\n ", resultAsString);
assertEquals(Status.ERROR, commandResult.getStatus());
- assertTrue(resultAsString.contains("Index " + INDEX_NAME + " not found"));
+ assertEquals("Unexpected CommandResult string :" + resultAsString, true,
+ resultAsString.contains("Index " + INDEX_NAME + " not found"));
}
@Test