Skip to content

Commit

Permalink
Improve clomert_test
Browse files Browse the repository at this point in the history
  • Loading branch information
afeinberg committed Oct 19, 2010
1 parent cff21e2 commit 0357da6
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions test/clomert/clomert_test.clj
Expand Up @@ -33,9 +33,11 @@
5 client 5 client
(fn [#^StoreClient scl] (fn [#^StoreClient scl]
(let [v (v/store-get scl "foo")] (let [v (v/store-get scl "foo")]
(v/store-conditional-put scl "foo" (do
(if (nil? v) (v/store-conditional-put scl "foo"
(v/make-versioned "a") (if (nil? v)
(v/versioned-set-value! (v/make-versioned "a")
(v (str (v/versioned-value v) (v/versioned-set-value!
"b")))))))))) (v (str (v/versioned-value v)
"b")))))
(is (= (v/store-get-value scl "foo") "a"))))))))

0 comments on commit 0357da6

Please sign in to comment.