Skip to content

Commit 6764754

Browse files
committed
Parse TEST_HOSTS='' correctly
It got parsed into ['']
1 parent 8612dec commit 6764754

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/common/distributed_helper.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ get_node_keys() ->
231231
[NodeKey || {NodeKey, _Opts} <- ct:get_config(hosts)];
232232
EnvValue -> %% EnvValue examples are "mim" or "mim mim2"
233233
BinHosts = binary:split(iolist_to_binary(EnvValue), <<" ">>, [global]),
234-
[binary_to_atom(Node, utf8) || Node <- BinHosts]
234+
[binary_to_atom(Node, utf8) || Node <- BinHosts, Node =/= <<>>]
235235
end.
236236

237237
validate_node(NodeKey) ->

0 commit comments

Comments
 (0)