Skip to content

Commit 5e4942a

Browse files
ansdmergify[bot]
authored andcommitted
Simplify
(cherry picked from commit 6366eaf)
1 parent 3af3767 commit 5e4942a

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

deps/rabbit/test/amqp_jms_SUITE.erl

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -122,28 +122,24 @@ jms_temporary_queue(Config) ->
122122

123123
%% Send different message types from JMS client to JMS client.
124124
message_types_jms_to_jms(Config) ->
125-
TestName = atom_to_binary(?FUNCTION_NAME),
126-
ok = run_jms_test(TestName, [], Config).
125+
ok = run_jms_test(?FUNCTION_NAME, Config).
127126

128127
%% Send different message types from JMS client to Erlang AMQP 1.0 client.
129128
message_types_jms_to_amqp(Config) ->
130-
TestName = atom_to_binary(?FUNCTION_NAME),
131-
ok = run_jms_test(TestName, [], Config).
129+
ok = run_jms_test(?FUNCTION_NAME, Config).
132130

133131
temporary_queue_rpc(Config) ->
134-
TestName = atom_to_binary(?FUNCTION_NAME),
135-
ok = run_jms_test(TestName, [], Config).
132+
ok = run_jms_test(?FUNCTION_NAME, Config).
136133

137134
temporary_queue_delete(Config) ->
138-
TestName = atom_to_binary(?FUNCTION_NAME),
139-
ok = run_jms_test(TestName, [], Config).
135+
ok = run_jms_test(?FUNCTION_NAME, Config).
140136

141137
%% -------------------------------------------------------------------
142138
%% Helpers
143139
%% -------------------------------------------------------------------
144140

145-
run_jms_test(TestName, JavaProps, Config) ->
146-
run(TestName, [{"-Dtest=JmsTest#~ts", [TestName]} | JavaProps], Config).
141+
run_jms_test(TestName, Config) ->
142+
run(TestName, [{"-Dtest=JmsTest#~ts", [TestName]}], Config).
147143

148144
run(TestName, JavaProps, Config) ->
149145
TestProjectDir = ?config(data_dir, Config),

0 commit comments

Comments
 (0)