You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ngcp-panel/t/api-threads.t

28 lines
426 B

use threads qw();
#use Sipwise::Base;
use Test::More;
BEGIN {
unshift(@INC,'../lib');
}
use NGCP::Panel::Utils::DateTime qw();
my $delay = 5;
my $t_a = threads->create(sub {
diag('thread ' . threads->tid());
sleep($delay);
});
my $t_b = threads->create(sub {
diag('thread ' . threads->tid());
sleep($delay);
});
$t_a->join();
$t_b->join();
#ok($t_a + $t_b == 2,'test threads joined');
done_testing;