<commit_before>use t::lib::Eris::Test;

subtest 'Spawning' => sub {
    my $server = AnyEvent::eris::Server->new();
    isa_ok( $server, 'AnyEvent::eris::Server' );
};

subtest 'Run server' => sub {
    my ( $server, $cv ) = new_server;
    can_ok( $server, 'run' );
    my $t; $t = AE::timer 0, 0, sub {
        undef $t;
        $cv->send('OK');
    };

    $cv->recv;
    is( $server->run($cv), 'OK', 'Server closed' );
};

done_testing;
<commit_msg>remove wrong recv() because run() calls it already<commit_after>use t::lib::Eris::Test;

subtest 'Spawning' => sub {
    my $server = AnyEvent::eris::Server->new();
    isa_ok( $server, 'AnyEvent::eris::Server' );
};

subtest 'Run server' => sub {
    my ( $server, $cv ) = new_server;
    can_ok( $server, 'run' );
    my $t; $t = AE::timer 0, 0, sub {
        undef $t;
        $cv->send('OK');
    };

    is( $server->run($cv), 'OK', 'Server closed' );
};

done_testing;

{'fraction_non_alphanumeric': 0.21767241379310345, 'fraction_numerical': 0.004310344827586207, 'mean_word_length': 3.1473214285714284, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 14, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3050250', 'n_tokens_mistral': 370, 'n_tokens_neox': 355, 'n_words': 84}