Skip to content

Commit d548f71

Browse files
committed
tests: update to new parameters
1 parent 567c58b commit d548f71

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

project.clj

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
:description "Apache Mesos type conversions to and from Clojure"
33
:url "https://github.com/pyr/mesomatic"
44
:license {:name "MIT License"}
5-
:dependencies [[org.clojure/clojure "1.7.0"]
5+
:dependencies [[org.clojure/clojure "1.8.0"]
66
[org.apache.mesos/mesos "0.26.0"]])

test/mesomatic/allocator_test.clj

+3-3
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@
4040
:port-mappings [{:container-port 80, :protocol nil}],
4141
:network :docker-network-bridge}},
4242
:command {:shell false},
43-
:count 2,
44-
:maxcol 1}]
43+
:instances 2
44+
:colocation 1}]
4545

4646
(testing "cannot satisfy workload"
4747
(is (= nil (allocate-naively (take 1 offers) [task-info])))
@@ -53,7 +53,7 @@
5353
(group-by :offer-id)
5454
keys
5555
count)))
56-
(is (= 1 (->> (allocate-naively offers [(assoc task-info :maxcol 2)])
56+
(is (= 1 (->> (allocate-naively offers [(assoc task-info :colocation 2)])
5757
(group-by :offer-id)
5858
keys
5959
count))))))

0 commit comments

Comments
 (0)