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/1c547abb Tree: http://git-wip-us.apache.org/repos/asf/storm/tree/1c547abb Diff: http://git-wip-us.apache.org/repos/asf/storm/diff/1c547abb Branch: refs/heads/0.10.x-branch Commit: 1c547abb01e68eb40ea4dd8c871266ac54862659 Parents: f0793dd Author: Paul Poulosky <ppoul...@thenperfect-lm.champ.corp.yahoo.com> Authored: Fri Oct 9 09:41:25 2015 -0500 Committer: Jungtaek Lim <kabh...@gmail.com> Committed: Sat Oct 10 23:01:15 2015 +0900 ---------------------------------------------------------------------- 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/1c547abb/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 26b0fc8..01ce365 100644 --- a/storm-core/test/clj/backtype/storm/supervisor_test.clj +++ b/storm-core/test/clj/backtype/storm/supervisor_test.clj @@ -568,15 +568,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