 (ns status-im.test.protocol.core
-  (:require [cljs.test :refer-macros [deftest is testing run-tests async]]
+  (:require-macros [cljs.core.async.macros :as async])
+  (:require [cljs.test :refer-macros [deftest is testing run-tests
+                                      async use-fixtures]]
             [cljs.nodejs :as nodejs]
+            [cljs.core.async :as async]
             [status-im.protocol.web3.utils :as web3.utils]
             [status-im.test.protocol.node :as node]
             [status-im.test.protocol.utils :as utils]

   :contacts            contacts
   :post-error-callback (post-error-callback id)})

;; NOTE(oskarth): Test assumes callback is always called, otherwise it won't terminate
;; TODO(oskarth): Add a timeout async function where we fail test if it takes too long to finish
;; TODO(oskarth): Fix this test, issue with private key not being persisted
#_(deftest test-send-message!
  (async done
    (node/start!)
    (let [web3          (make-web3)
          id1-keypair   (protocol/new-keypair!)
          common-config {:web3                        web3
                         :groups                      []

                                :content      "123"
                                :timestamp    1498723691404}}}))))

(deftest test-whisper-version!
  (testing "Whisper version supported"
    (async done
