Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

changes to tests to work on clojure 1.4- the IntegerSerializer throws…

… an exception when dealing with longs so we'll just specify the long serializer where we specified integer before.
  • Loading branch information...
commit 3ac454821abe2815e5a317a3402d3f318acf7d39 1 parent 72dbf38
@pingles authored
Showing with 4 additions and 4 deletions.
  1. +1 −1  project.clj
  2. +3 −3 test/clj_hector/test/core.clj
View
2  project.clj
@@ -5,5 +5,5 @@
[org.apache.cassandra/cassandra-all "1.0.5"]]
:dependencies [[me.prettyprint/hector-core "1.0-3" :exclusions [org.slf4j/slf4j-log4j12]]
[org.slf4j/slf4j-api "1.6.1"]
- [org.clojure/clojure "1.2.1"]
+ [org.clojure/clojure "1.4.0"]
[joda-time/joda-time "2.0"]])
View
6 test/clj_hector/test/core.clj
@@ -206,7 +206,7 @@
(deftest ttl-columns
(testing "regular column ttl"
(let [column-family "A"
- opts [:n-serializer :string :v-serializer :integer]
+ opts [:n-serializer :string :v-serializer :long]
pk "row-key1"]
(with-test-keyspace keyspace [{:name column-family}]
(put keyspace column-family pk {"n" 1 "n2" 2} :ttl 1)
@@ -217,7 +217,7 @@
(apply get-columns keyspace column-family pk ["n" "n2"] opts))))))
(testing "super column ttl"
(let [column-family "A"
- opts [:s-serializer :string :n-serializer :string :v-serializer :integer]
+ opts [:s-serializer :string :n-serializer :string :v-serializer :long]
pk "row-key"]
(with-test-keyspace keyspace [{:name column-family
:type :super}]
@@ -230,7 +230,7 @@
(deftest test-batch-put
(let [column-family "A"
- opts [:s-serializer :string :n-serializer :string :v-serializer :integer]
+ opts [:s-serializer :string :n-serializer :string :v-serializer :long]
pk1 "row-key1"
pk2 "row-key2"]
(with-test-keyspace keyspace [{:name column-family
Please sign in to comment.
Something went wrong with that request. Please try again.