You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@storm.apache.org by bo...@apache.org on 2014/08/25 20:21:51 UTC
[7/9] git commit: remove unnessery test and change port numbers order
remove unnessery test and change port numbers order
Project: http://git-wip-us.apache.org/repos/asf/incubator-storm/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-storm/commit/a2484f3e
Tree: http://git-wip-us.apache.org/repos/asf/incubator-storm/tree/a2484f3e
Diff: http://git-wip-us.apache.org/repos/asf/incubator-storm/diff/a2484f3e
Branch: refs/heads/master
Commit: a2484f3e7659841d986439b73c79116f8ba0d70b
Parents: d6a7114
Author: Kang Xiao <kx...@gmail.com>
Authored: Sat Aug 16 00:12:53 2014 +0800
Committer: Kang Xiao <kx...@gmail.com>
Committed: Sat Aug 16 00:12:53 2014 +0800
----------------------------------------------------------------------
storm-core/test/clj/backtype/storm/scheduler_test.clj | 10 +++-------
1 file changed, 3 insertions(+), 7 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-storm/blob/a2484f3e/storm-core/test/clj/backtype/storm/scheduler_test.clj
----------------------------------------------------------------------
diff --git a/storm-core/test/clj/backtype/storm/scheduler_test.clj b/storm-core/test/clj/backtype/storm/scheduler_test.clj
index 9744ac6..856ddeb 100644
--- a/storm-core/test/clj/backtype/storm/scheduler_test.clj
+++ b/storm-core/test/clj/backtype/storm/scheduler_test.clj
@@ -262,10 +262,6 @@
))
(deftest test-sort-slots
- ;; test supervisor1 and supervisor2 has the same free slot
- (is (= '(["supervisor1" 6700] ["supervisor2" 6700]
- ["supervisor1" 6701] ["supervisor2" 6701])
- (sort-slots [["supervisor1" 6700] ["supervisor1" 6701] ["supervisor2" 6700] ["supervisor2" 6701]])))
;; test supervisor2 has more free slots
(is (= '(["supervisor2" 6700] ["supervisor1" 6700]
["supervisor2" 6701] ["supervisor1" 6701]
@@ -275,12 +271,12 @@
])))
;; test supervisor3 has more free slots
(is (= '(["supervisor3" 6700] ["supervisor2" 6700] ["supervisor1" 6700]
- ["supervisor3" 6701] ["supervisor2" 6701] ["supervisor1" 6701]
+ ["supervisor3" 6703] ["supervisor2" 6701] ["supervisor1" 6701]
["supervisor3" 6702] ["supervisor2" 6702]
- ["supervisor3" 6703])
+ ["supervisor3" 6701])
(sort-slots [["supervisor1" 6700] ["supervisor1" 6701]
["supervisor2" 6700] ["supervisor2" 6701] ["supervisor2" 6702]
- ["supervisor3" 6700] ["supervisor3" 6701] ["supervisor3" 6702] ["supervisor3" 6703]
+ ["supervisor3" 6700] ["supervisor3" 6703] ["supervisor3" 6702] ["supervisor3" 6701]
])))
)