X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2FCatalyst-Engine-Stomp.t;fp=t%2FCatalyst-Engine-Stomp.t;h=9bd5dea13587e35e37f351372d0fa67aec3880b7;hb=ff3b0412908a525148e969054b9b3c7c47366eed;hp=e96c0285db9188546ad1c598b73a51a2c282ebe9;hpb=0a66358961c58c5fff96a363853ee93b00f55119;p=catagits%2FCatalyst-Engine-STOMP.git diff --git a/t/Catalyst-Engine-Stomp.t b/t/Catalyst-Engine-Stomp.t index e96c028..9bd5dea 100644 --- a/t/Catalyst-Engine-Stomp.t +++ b/t/Catalyst-Engine-Stomp.t @@ -1,5 +1,4 @@ -use Test::More tests => 14; -use Test::Fork; +use Test::More tests => 12; # Tests which expect a STOMP server like ActiveMQ to exist on # localhost:61613, which is what you get if you just get the ActiveMQ @@ -10,10 +9,10 @@ use YAML::XS qw/ Dump Load /; use Data::Dumper; # First fire off the server -my $child_pid = fork_ok(1, sub { - ok(system("$^X -Ilib -Itestapp/lib testapp/script/testapp_stomp.pl --oneshot")); - #sleep 3; -}); +unless (fork()) { + system("$^X -Ilib -Itestapp/lib testapp/script/testapp_stomp.pl --oneshot"); + exit 0; +} # Now be a client to that server