disable contract deploy test since it requires gas

This commit is contained in:
Martin Klepsch 2018-03-20 12:46:35 +01:00 committed by Tetiana Churikova
parent 52d6eef292
commit 32c4d3ccee
1 changed files with 9 additions and 7 deletions

View File

@ -17,12 +17,14 @@
(if (< (System/currentTimeMillis) end-time) (if (< (System/currentTimeMillis) end-time)
(recur))))))) (recur)))))))
;; deploys a multisig and gets it's address. assumes test environment configured correctly (access to running geth, eth wallet, password etc) ;; deploys a multisig and gets it's address
;; assumes test environment configured correctly
;; (eth wallet with some eth, password etc)
(deftest test-deploy (deftest test-deploy
(testing "Deploying a multisig" (testing "Deploying a multisig"
(let [tx-id (multisig/deploy-multisig OWNER_ADDRESS) (println "WARN multisig deployment test currently disabled as it requires gas")
tx-receipt (wait-for (fn [] (eth/get-transaction-receipt tx-id))) #_(let [tx-id (multisig/deploy-multisig OWNER_ADDRESS)
addr (-> tx-receipt tx-receipt (wait-for (fn [] (eth/get-transaction-receipt tx-id)))
(multisig/find-created-multisig-address))] addr (multisig/find-created-multisig-address tx-receipt)]
(println "Created multisig address" addr) (println "Created multisig address" addr)
(is (not-empty addr))))) (is (not-empty addr)))))