=================================================================== RCS file: /cvs/trango/Net-Telnet-Trango/t/53-network-add_su-ap-su.t,v retrieving revision 1.1 retrieving revision 1.4 diff -u -r1.1 -r1.4 --- trango/Net-Telnet-Trango/t/53-network-add_su-ap-su.t 2007/02/06 17:26:54 1.1 +++ trango/Net-Telnet-Trango/t/53-network-add_su-ap-su.t 2007/02/06 20:59:10 1.4 @@ -1,21 +1,20 @@ #!perl -T -# $RedRiver: 51-network-add_su-ap.t,v 1.4 2007/02/06 16:52:21 andrew Exp $ +# $RedRiver: 53-network-add_su-ap-su.t,v 1.3 2007/02/06 20:42:40 andrew Exp $ -use Test::More tests => 20; +use Test::More tests => 17; use File::Spec; BEGIN { use_ok( 'Net::Telnet::Trango' ); } -diag("Testing Net::Telnet::Trango $Net::Telnet::Trango::VERSION, Perl $], $^X"); -diag(" AP tests when adding an SU to an AP"); +diag("53: AP tests when adding an SU to an AP and the SU should associate"); my $cfg_file = File::Spec->catfile('t', 'tests.cfg'); my ($cir, $mir) = (128, 256); SKIP: { - my $skipped = 19; + my $skipped = 16; my %cfg; if (-e $cfg_file) { if (open my $fh, $cfg_file) { @@ -60,13 +59,13 @@ $su = $1; } - skip 'No valid ' . $type . ' in config file', $skipped unless $host; + skip 'No valid SU in config file', $skipped unless $su; if ($cfg{$type . '_PASSWD'} && $cfg{$type . '_PASSWD'} =~ /^(.*)$/) { $su_pass = $1; } - skip 'No valid ' . $type . '_PASSWD in config file', $skipped unless $pass; + skip 'No valid SU_PASSWD in config file', $skipped unless $su_pass; my $t; ok($t = Net::Telnet::Trango->new(), "Instantiating object"); @@ -150,4 +149,10 @@ } ok($t->bye, "Goodbye"); + + if ($su && $su_pass) { + diag("Waiting 30 seconds for SU to associate"); + sleep 30; + } + }