Permalink
Browse files

Tests on Travis fixed.

  • Loading branch information...
1 parent 17ff722 commit 4e20ac69e71e7c3d51abe1aef899836187d2cf93 @bfontaine bfontaine committed Sep 2, 2013
Showing with 4 additions and 4 deletions.
  1. +2 −0 .travis.yml
  2. +2 −4 test/clojurewerkz/elastisch/test/helpers.clj
View
@@ -2,6 +2,8 @@ language: clojure
lein: lein2
services:
- elasticsearch
+env:
+ - ES_CLUSTER_NAME=elasticsearch
before_install:
- sudo service elasticsearch status
script: lein2 all test :ci
@@ -21,7 +21,5 @@
(defn maybe-connect-native-client
[]
- (if (not (ci?))
- (when (not (es/connected?))
- (connect-native-client))
- (println "ES_CLUSTER_NAME env variable is not set. Please set it to your local ES cluster name.")))
+ (when (not (es/connected?))
+ (connect-native-client)))

0 comments on commit 4e20ac6

Please sign in to comment.