Github user xiaokang commented on a diff in the pull request:

    https://github.com/apache/incubator-storm/pull/36#discussion_r16298432
  
    --- Diff: storm-core/test/clj/backtype/storm/scheduler_test.clj ---
    @@ -259,3 +260,27 @@
         (is (= false (.isSlotOccupied cluster (WorkerSlot. "supervisor1" (int 
3)))))
         (is (= false (.isSlotOccupied cluster (WorkerSlot. "supervisor1" (int 
5)))))
         ))
    +
    +(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]])))
    --- End diff --
    
    Yes, the order is not defined for supervisors with the same free slots.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to