<div dir="ltr"><div class="" itemprop="text">

<p>Common test <code>init_per_group/2</code> terminates gen_server beforehand (right in the end of init_per_group/2 call) when it is started with <code>gen_server:start_link</code>.
But it is ok to start server with <code>gen_server:start</code>.</p>

<p><code>gen_server</code> can be started with any of these methods (<code>start</code> and <code>start_link</code>) in <code>init_per_suite/1</code> and <code>init_per_testcase/2</code> and it will work fine.</p>

<p>Why it is not possible to start gen_server in <code>init_per_group/2</code> with <code>gen_server:start_link</code>?</p>
    </div></div>