<div dir="ltr"><div class="gmail_extra">Exactly, that is where expected result fails! Here's the test: <b><a href="http://pastebin.com/vsRuLKVj">http://pastebin.com/vsRuLKVj</a></b></div><div class="gmail_extra"><br>
</div><div class="gmail_extra">Running <span style="font-size:13px;font-family:arial,sans-serif"> timer:tc(fun() -> cluster_test:cluster_</span><span style="font-size:13px;font-family:arial,sans-serif">formation() end). , It works like a charm, cluster is well created, slave nodes are added to the main one , running fine. Here's the result:</span></div>
<div class="gmail_extra"><br></div><div class="gmail_extra"><div class="gmail_extra">Eshell V5.10.4 (abort with ^G)</div><div class="gmail_extra"><b>(<a href="mailto:node1@127.0.0.1">node1@127.0.0.1</a>)1> timer:tc(fun() -> cluster_test:cluster_formation() end).</b></div>
<div class="gmail_extra">11:31:27.940 [info] Application lager started on node '<a href="mailto:slave1@127.0.0.1">slave1@127.0.0.1</a>'</div><div class="gmail_extra">11:31:28.016 [info] Application inets started on node '<a href="mailto:slave1@127.0.0.1">slave1@127.0.0.1</a>'</div>
<div class="gmail_extra">11:31:28.049 [info] Application crypto started on node '<a href="mailto:slave1@127.0.0.1">slave1@127.0.0.1</a>'</div><div class="gmail_extra">11:31:28.070 [info] Application asn1 started on node '<a href="mailto:slave1@127.0.0.1">slave1@127.0.0.1</a>'</div>
<div class="gmail_extra">11:31:28.071 [info] Application public_key started on node '<a href="mailto:slave1@127.0.0.1">slave1@127.0.0.1</a>'</div><div class="gmail_extra">11:31:28.080 [info] Application ssl started on node '<a href="mailto:slave1@127.0.0.1">slave1@127.0.0.1</a>'</div>
<div class="gmail_extra">11:31:28.095 [info] Application gproc started on node '<a href="mailto:slave1@127.0.0.1">slave1@127.0.0.1</a>'</div><div class="gmail_extra">11:31:28.107 [info] Application cluster started on node '<a href="mailto:slave1@127.0.0.1">slave1@127.0.0.1</a>'</div>
<div class="gmail_extra">11:31:28.483 [info] Application lager started on node '<a href="mailto:slave2@127.0.0.1">slave2@127.0.0.1</a>'</div><div class="gmail_extra">11:31:28.538 [info] Application inets started on node '<a href="mailto:slave2@127.0.0.1">slave2@127.0.0.1</a>'</div>
<div class="gmail_extra">11:31:28.563 [info] Application crypto started on node '<a href="mailto:slave2@127.0.0.1">slave2@127.0.0.1</a>'</div><div class="gmail_extra">11:31:28.574 [info] Application asn1 started on node '<a href="mailto:slave2@127.0.0.1">slave2@127.0.0.1</a>'</div>
<div class="gmail_extra">11:31:28.574 [info] Application public_key started on node '<a href="mailto:slave2@127.0.0.1">slave2@127.0.0.1</a>'</div><div class="gmail_extra">11:31:28.584 [info] Application ssl started on node '<a href="mailto:slave2@127.0.0.1">slave2@127.0.0.1</a>'</div>
<div class="gmail_extra">11:31:28.601 [info] Application gproc started on node '<a href="mailto:slave2@127.0.0.1">slave2@127.0.0.1</a>'</div><div class="gmail_extra">11:31:28.617 [info] Application cluster started on node '<a href="mailto:slave2@127.0.0.1">slave2@127.0.0.1</a>'</div>
<div class="gmail_extra"><b>Cluster formation, nodes: ['<a href="mailto:node1@127.0.0.1">node1@127.0.0.1</a>','<a href="mailto:slave1@127.0.0.1">slave1@127.0.0.1</a>',</b></div><div class="gmail_extra"><b> '<a href="mailto:slave2@127.0.0.1">slave2@127.0.0.1</a>'] </b></div>
<div class="gmail_extra"><b>{3555096,ok}</b></div><div class="gmail_extra"><br></div><div class="gmail_extra">Executing eunit:test(cluster_test), that's the result:<br></div></div><div class="gmail_extra"><div class="gmail_extra">
<b>(<a href="mailto:node1@127.0.0.1">node1@127.0.0.1</a>)1> eunit:test(cluster_test).</b></div><div class="gmail_extra">cluster_test: cluster_formation_suite_test_...*failed*</div><div class="gmail_extra">in function cluster_test:'-cluster_formation/0-fun-4-'/2 (src/cluster_test.erl, line 43)</div>
<div class="gmail_extra">in call from cluster_test:cluster_formation/0 (src/cluster_test.erl, line 43)</div><div class="gmail_extra">**error:{assertEqual_failed,</div><div class="gmail_extra"> [{module,cluster_test},</div>
<div class="gmail_extra"> {line,43},</div><div class="gmail_extra"> {expression,"Result1"},</div><div class="gmail_extra"> {expected,ok},</div><div class="gmail_extra"> {value,</div><div class="gmail_extra">
{badrpc,</div><div class="gmail_extra"> {'EXIT',</div><div class="gmail_extra"> {undef,</div><div class="gmail_extra"> [{cluster,join,[...],...},</div><div class="gmail_extra">
{rpc,'-handle_call_call/6-fun-0-',...}]}}}}]}</div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div><div class="gmail_extra">=======================================================</div>
<div class="gmail_extra"> Failed: 1. Skipped: 0. Passed: 0.</div><div class="gmail_extra">error</div><div><br></div><div>It fails in the joinning step, but i'm pretty sure that is in slave:start when the failure starts.</div>
<div><br></div></div><div class="gmail_extra"><br></div><div class="gmail_extra"><br><div class="gmail_quote">2014-08-01 11:00 GMT+02:00 Scott Lystig Fritchie <span dir="ltr"><<a href="mailto:fritchie@snookles.com" target="_blank">fritchie@snookles.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div id=":76j" class="" style="overflow:hidden"> timer:tc(fun() -> cluster_test:cluster_formation() end).</div>
</blockquote></div><br><br></div></div>
<p></p>
-- <br />
You received this message because you are subscribed to the Google Groups "Erlang Programming" group.<br />
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="mailto:erlang-programming+unsubscribe@googlegroups.com">erlang-programming+unsubscribe@googlegroups.com</a>.<br />
To post to this group, send email to <a href="mailto:erlang-programming@googlegroups.com">erlang-programming@googlegroups.com</a>.<br />
Visit this group at <a href="http://groups.google.com/group/erlang-programming">http://groups.google.com/group/erlang-programming</a>.<br />
For more options, visit <a href="https://groups.google.com/d/optout">https://groups.google.com/d/optout</a>.<br />