Remove argument from test
Project: http://git-wip-us.apache.org/repos/asf/storm/repo Commit: http://git-wip-us.apache.org/repos/asf/storm/commit/16e5bd13 Tree: http://git-wip-us.apache.org/repos/asf/storm/tree/16e5bd13 Diff: http://git-wip-us.apache.org/repos/asf/storm/diff/16e5bd13 Branch: refs/heads/master Commit: 16e5bd135177163912886838de8736f520d9a9b7 Parents: 103125d Author: Paul Poulosky <ppoul...@thenperfect-lm.champ.corp.yahoo.com> Authored: Fri Oct 9 09:41:25 2015 -0500 Committer: Paul Poulosky <ppoul...@thenperfect-lm.champ.corp.yahoo.com> Committed: Fri Oct 9 09:41:25 2015 -0500 ---------------------------------------------------------------------- storm-core/test/clj/backtype/storm/supervisor_test.clj | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/storm/blob/16e5bd13/storm-core/test/clj/backtype/storm/supervisor_test.clj ---------------------------------------------------------------------- diff --git a/storm-core/test/clj/backtype/storm/supervisor_test.clj b/storm-core/test/clj/backtype/storm/supervisor_test.clj index 2c8aa52..bc54d6f 100644 --- a/storm-core/test/clj/backtype/storm/supervisor_test.clj +++ b/storm-core/test/clj/backtype/storm/supervisor_test.clj @@ -573,15 +573,14 @@ childopts-with-ids (supervisor/substitute-childopts childopts worker-id topology-id port)] (is (= expected-childopts childopts-with-ids))))) -(deftest test-substitute-childopts-happy-path-arraylist - (testing "worker-launcher replaces ids in childopts from arraylist" +(deftest test-substitute-childopts-happy-path-list-arraylist + (testing "worker-launcher replaces ids in childopts" (let [worker-id "w-01" topology-id "s-01" port 9999 - mem-onheap 512 - childopts '["-Xloggc:/home/y/lib/storm/current/logs/gc.worker-%ID%-%TOPOLOGY-ID%-%WORKER-ID%-%WORKER-PORT%.log" "-Xms256m" "-Xmx%HEAP-MEM%m"] - expected-childopts '("-Xloggc:/home/y/lib/storm/current/logs/gc.worker-9999-s-01-w-01-9999.log" "-Xms256m" "-Xmx512m") - childopts-with-ids (supervisor/substitute-childopts childopts worker-id topology-id port mem-onheap)] + childopts '["-Xloggc:/home/y/lib/storm/current/logs/gc.worker-%ID%-%TOPOLOGY-ID%-%WORKER-ID%-%WORKER-PORT%.log" "-Xms256m"] + expected-childopts '("-Xloggc:/home/y/lib/storm/current/logs/gc.worker-9999-s-01-w-01-9999.log" "-Xms256m") + childopts-with-ids (supervisor/substitute-childopts childopts worker-id topology-id port)] (is (= expected-childopts childopts-with-ids))))) (deftest test-substitute-childopts-topology-id-alone