Fix test suite check for text indexes

This was passing by accident on travis because the $CWD is set
differently so the test would always fail. If however you tried to run
the tests locally then it would fail. Obviously the test is just wrong
since we're moving the mango_cursor_text.erl file in rebar.config, and
not mango_cursor.erl which is required for every index type.

COUCHDB-3143


Project: http://git-wip-us.apache.org/repos/asf/couchdb-mango/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-mango/commit/29b59449
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-mango/tree/29b59449
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-mango/diff/29b59449

Branch: refs/heads/master
Commit: 29b59449dffea83470ec5c828a8ab2e8c6504a65
Parents: d8432c5
Author: Paul J. Davis <paul.joseph.da...@gmail.com>
Authored: Sun Sep 11 14:08:51 2016 -0500
Committer: Paul J. Davis <paul.joseph.da...@gmail.com>
Committed: Sun Sep 11 14:08:51 2016 -0500

----------------------------------------------------------------------
 test/mango.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-mango/blob/29b59449/test/mango.py
----------------------------------------------------------------------
diff --git a/test/mango.py b/test/mango.py
index 09c45fc..da51180 100644
--- a/test/mango.py
+++ b/test/mango.py
@@ -27,7 +27,7 @@ def random_db_name():
     return "mango_test_" + uuid.uuid4().hex
 
 def has_text_service():
-    return os.path.isfile(os.getcwd() + "/../src/mango_cursor.erl")
+    return os.path.isfile(os.getcwd() + "/../src/mango_cursor_text.erl")
 
 
 class Database(object):

Reply via email to