From 6b4a4316654e3e946f3943b8136d9ebaa882f2ed Mon Sep 17 00:00:00 2001 From: Adrian Cole Date: Tue, 15 Nov 2011 15:59:32 +0200 Subject: [PATCH] change test to not use InetAddress.getLocalhost() as this breaks on cloudbees --- compute/src/test/clojure/org/jclouds/compute2_test.clj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compute/src/test/clojure/org/jclouds/compute2_test.clj b/compute/src/test/clojure/org/jclouds/compute2_test.clj index 0f4d039e9d..4de651a594 100644 --- a/compute/src/test/clojure/org/jclouds/compute2_test.clj +++ b/compute/src/test/clojure/org/jclouds/compute2_test.clj @@ -88,7 +88,7 @@ list, Alan Dipert and MeikelBrandmeyer." (defn localhost? [node] "Returns true if the localhost address is in the node's private ips" - (seq? (some #(= (InetAddress/getLocalHost) %) (private-ips node)))) + (seq? (some #(= "localhost" %) (private-ips node)))) (deftest compound-predicate-test (is (create-node *compute* "my-group" (build-template *compute* {})))