diff options
Diffstat (limited to 't/01-basic.t')
-rw-r--r-- | t/01-basic.t | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/t/01-basic.t b/t/01-basic.t index f353c42..48bea2c 100644 --- a/t/01-basic.t +++ b/t/01-basic.t @@ -2,13 +2,10 @@ use strict; use warnings; use Test::More; -use App::Termcast; +use Test::Requires 'Test::TCP'; use IO::Pty::Easy; -BEGIN { - eval "use Test::TCP;"; - plan skip_all => "Test::TCP is required for this test" if $@; - plan tests => 3; -} + +use App::Termcast; test_tcp( client => sub { @@ -43,3 +40,5 @@ EOF is($output, "foo", 'sent the right data to the server'); }, ); + +done_testing; |