[erlang-questions] Cluster Functional test using Slave Nodes

marcos quesada marcos.quesadas@REDACTED
Fri Aug 1 11:36:57 CEST 2014


Exactly, that is where expected result fails! Here's the test:
*http://pastebin.com/vsRuLKVj
<http://pastebin.com/vsRuLKVj>*

Running  timer:tc(fun() -> cluster_test:cluster_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:

Eshell V5.10.4  (abort with ^G)
*(node1@REDACTED <node1@REDACTED>)1>  timer:tc(fun() ->
cluster_test:cluster_formation() end).*
11:31:27.940 [info] Application lager started on node 'slave1@REDACTED'
11:31:28.016 [info] Application inets started on node 'slave1@REDACTED'
11:31:28.049 [info] Application crypto started on node 'slave1@REDACTED'
11:31:28.070 [info] Application asn1 started on node 'slave1@REDACTED'
11:31:28.071 [info] Application public_key started on node 'slave1@REDACTED
'
11:31:28.080 [info] Application ssl started on node 'slave1@REDACTED'
11:31:28.095 [info] Application gproc started on node 'slave1@REDACTED'
11:31:28.107 [info] Application cluster started on node 'slave1@REDACTED'
11:31:28.483 [info] Application lager started on node 'slave2@REDACTED'
11:31:28.538 [info] Application inets started on node 'slave2@REDACTED'
11:31:28.563 [info] Application crypto started on node 'slave2@REDACTED'
11:31:28.574 [info] Application asn1 started on node 'slave2@REDACTED'
11:31:28.574 [info] Application public_key started on node 'slave2@REDACTED
'
11:31:28.584 [info] Application ssl started on node 'slave2@REDACTED'
11:31:28.601 [info] Application gproc started on node 'slave2@REDACTED'
11:31:28.617 [info] Application cluster started on node 'slave2@REDACTED'
*Cluster formation, nodes: ['node1@REDACTED
<node1@REDACTED>','slave1@REDACTED <slave1@REDACTED>',*
*                           'slave2@REDACTED <slave2@REDACTED>'] *
*{3555096,ok}*

Executing eunit:test(cluster_test), that's the result:
*(node1@REDACTED <node1@REDACTED>)1> eunit:test(cluster_test).*
cluster_test: cluster_formation_suite_test_...*failed*
in function cluster_test:'-cluster_formation/0-fun-4-'/2
(src/cluster_test.erl, line 43)
in call from cluster_test:cluster_formation/0 (src/cluster_test.erl, line
43)
**error:{assertEqual_failed,
    [{module,cluster_test},
     {line,43},
     {expression,"Result1"},
     {expected,ok},
     {value,
         {badrpc,
             {'EXIT',
                 {undef,
                     [{cluster,join,[...],...},
                      {rpc,'-handle_call_call/6-fun-0-',...}]}}}}]}


=======================================================
  Failed: 1.  Skipped: 0.  Passed: 0.
error

It fails in the joinning step, but i'm pretty sure that is in slave:start
when the failure starts.



2014-08-01 11:00 GMT+02:00 Scott Lystig Fritchie <fritchie@REDACTED>:

> timer:tc(fun() -> cluster_test:cluster_formation() end).
>

-- 
You received this message because you are subscribed to the Google Groups "Erlang Programming" group.
To unsubscribe from this group and stop receiving emails from it, send an email to erlang-programming+unsubscribe@REDACTED
To post to this group, send email to erlang-programming@REDACTED
Visit this group at http://groups.google.com/group/erlang-programming.
For more options, visit https://groups.google.com/d/optout.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20140801/b9d72b18/attachment.htm>


More information about the erlang-questions mailing list