change test to not use InetAddress.getLocalhost() as this breaks on cloudbees

This commit is contained in:
Adrian Cole 2011-11-15 15:59:32 +02:00
parent ef2c2277d0
commit 6b4a431665
1 changed files with 1 additions and 1 deletions

View File

@ -88,7 +88,7 @@ list, Alan Dipert and MeikelBrandmeyer."
(defn localhost? [node] (defn localhost? [node]
"Returns true if the localhost address is in the node's private ips" "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 (deftest compound-predicate-test
(is (create-node *compute* "my-group" (build-template *compute* {}))) (is (create-node *compute* "my-group" (build-template *compute* {})))