Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Unpend these

  • Loading branch information...
commit 31a2ef6222088ccb828898e9e3e4531e0333d517 1 parent 33d3feb
Jim Crossley authored March 05, 2013
32  integration-tests/apps/caching/counter/test/counter/test/locking.clj
@@ -28,23 +28,19 @@
28 28
                         (msg/unlisten listener))))
29 29
 
30 30
 (deftest correct-counting-with-pessimistic-locking
31  
-  (println "PENDING: fix prior to release")
32  
-  ;; (csh/put (:pessimistic caches) :count 0)
33  
-  ;; (is (= 0 (:count (:pessimistic caches))))
34  
-  ;; (dotimes [_ 10] (msg/publish "/queue/work" {:name :pessimistic :key :count}))
35  
-  ;; (log/info "JC: published 10 messages")
36  
-  ;; (is (every? (partial = :pessimistic) (take 10 (msg/message-seq "/queue/done" :timeout 60000))))
37  
-  ;; (log/info "JC: pessimistic done" (:count (:pessimistic caches)))
38  
-  ;; (is (= 10 (:count (:pessimistic caches))))
39  
-  )
  31
+  (csh/put (:pessimistic caches) :count 0)
  32
+  (is (= 0 (:count (:pessimistic caches))))
  33
+  (dotimes [_ 10] (msg/publish "/queue/work" {:name :pessimistic :key :count}))
  34
+  (log/info "JC: published 10 messages")
  35
+  (is (every? (partial = :pessimistic) (take 10 (msg/message-seq "/queue/done" :timeout 60000))))
  36
+  (log/info "JC: pessimistic done" (:count (:pessimistic caches)))
  37
+  (is (= 10 (:count (:pessimistic caches)))))
40 38
 
41 39
 (deftest correct-counting-with-optimistic-locking
42  
-  (println "PENDING: fix prior to release")
43  
-  ;; (csh/put (:optimistic caches) :count 0)
44  
-  ;; (is (= 0 (:count (:optimistic caches))))
45  
-  ;; (dotimes [_ 3] (msg/publish "/queue/work" {:name :optimistic :key :count}))
46  
-  ;; (log/info "JC: published 3 messages")
47  
-  ;; (is (every? (partial = :optimistic) (take 3 (msg/message-seq "/queue/done" :timeout 60000))))
48  
-  ;; (log/info "JC: optimistic done" (:count (:optimistic caches)))
49  
-  ;; (is (= 3 (:count (:optimistic caches))))
50  
-  )
  40
+  (csh/put (:optimistic caches) :count 0)
  41
+  (is (= 0 (:count (:optimistic caches))))
  42
+  (dotimes [_ 3] (msg/publish "/queue/work" {:name :optimistic :key :count}))
  43
+  (log/info "JC: published 3 messages")
  44
+  (is (every? (partial = :optimistic) (take 3 (msg/message-seq "/queue/done" :timeout 60000))))
  45
+  (log/info "JC: optimistic done" (:count (:optimistic caches)))
  46
+  (is (= 3 (:count (:optimistic caches)))))

0 notes on commit 31a2ef6

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