[erlang-questions] Cluster Functional test using Slave Nodes

Scott Lystig Fritchie fritchie@REDACTED
Fri Aug 1 11:04:27 CEST 2014


marcos quesada <marcos.quesadas@REDACTED> wrote:

mq> As I said, executing: Â make start and
mq> then "cluster_test:cluster_formation()", the test works fine, no
mq> timeout appears an all the suite runs like a charm.

Yes, but you aren't using EUnit to execute it: you're executing it
directly.  What happens when you run this?

    eunit:test(cluster_test).

Or when you run the test without EUnit and measure the wall clock time:

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

That will return a 2-tuple, where the 1st element is the number of
microseconds elapsed during your test.

-Scott



More information about the erlang-questions mailing list