 
 (defn- redis-backed-tests*
   [async?]
-  (let [db-config  {:pool {} :spec {:uri "redis://localhost:6379/"}}
+  (let [ip @docker-default-machine-ip
+        db-config  {:pool {}
+                    :spec {:uri (str "redis://" ip ":6379/")}} ;; localhost won't work on the mac
         key-name "atom:state"
         init {:x 1 :y 2}
         key-exists? #(ut/redis-key-exists? db-config key-name)

            [duratom.core :refer :all]
            [duratom.utils :as ut]
            [taoensso.nippy :as nippy]
            [clojure.java.io :as io])
  (:import (duratom.core Duratom)
           (clojure.lang Agent)))

(defn- common*
  [dura exists? async?]


(defn- postgres-backed-tests*
  [async?]
  (let [ip @docker-default-machine-ip
        db-spec {:classname   "org.postgresql.Driver"
                 :subprotocol "postgresql"
                 :subname     (str "//"  ip ":5432/atomDB") ;; localhost won't work on the mac
                 :user        "dimitris"
                 :password    "secret"}
        table-name "atom_state"
