Skip to content
Browse files

Fix up set-config tests.

  • Loading branch information...
1 parent 173ccd3 commit 2624302b0fbf1f1b82696887b80b8f283d5fa13d @davidsantiago committed
Showing with 9 additions and 11 deletions.
  1. +9 −11 test/clojure_hbase/core_test.clj
View
20 test/clojure_hbase/core_test.clj
@@ -309,15 +309,13 @@
(deftest test-set-config
(try
(as-test
- (is
- (try (set-config {"hbase.zookeeper.quorum" "asdsa"}) ;<- not valid
- (table test-tbl-name) ;<- should raise exception
- false #_"<- fail if we got here, it should have thrown"
- (catch Exception e
- true)))
- (is
- (do
- (set-config {"hbase.zookeeper.quorum" "127.0.0.1"}) ;<- valid
- (table test-tbl-name))))
+ (is (thrown? Exception
+ (do
+ (set-config (make-config {"hbase.zookeeper.quorum"
+ "asdsa"})) ;; not valid
+ (table test-tbl-name)))) ;; This should throw an exception.
+ (is (do
+ (set-config (make-config {"hbase.zookeeper.quorum" "127.0.0.1"}))
+ (table test-tbl-name))))
(finally
- (set-config (default-config)))))
+ (set-config (make-config (default-config))))))

0 comments on commit 2624302

Please sign in to comment.
Something went wrong with that request. Please try again.