Codebase list libpoe-component-sslify-perl / 5a9b28e
tweak the connfail tests and make the server test work Apocalypse 13 years ago
2 changed file(s) with 13 addition(s) and 11 deletion(s). Raw diff Collapse all Expand all
3838 ClientConnected => sub
3939 {
4040 ok(1, 'SERVER: accepted');
41
42 # purposefully send garbage so we screw up the ssl connect on the client-side
43 $_[HEAP]->{client}->put( 'garbage in, garbage out' );
4144 },
4245 ClientDisconnected => sub
4346 {
44
55 my $numtests;
66 BEGIN {
7 $numtests = 8;
7 $numtests = 9;
88
9 # eval "use Test::NoWarnings";
10 # if ( ! $@ ) {
11 # # increment by one
12 # $numtests++;
13 # }
9 eval "use Test::NoWarnings";
10 if ( ! $@ ) {
11 # increment by one
12 $numtests++;
13 }
1414 }
1515
16 # For some reason I can't get this to replicate 5_connfail_client.t - wonder why?!#?
17 # I tried to use POE::Filter::Stream to see if it made a difference, nope...
18 #use Test::More tests => $numtests;
19 use Test::More;
20 plan skip_all => "This test hangs for some reason";
16 use Test::More tests => $numtests;
2117
2218 use POE 1.267;
2319 use POE::Component::Client::TCP;
9187 Connected => sub
9288 {
9389 ok(1, 'CLIENT: connected');
90
91 # purposefully send garbage so we screw up the ssl connect on the client-side
92 $_[HEAP]->{server}->put( 'garbage in, garbage out' );
9493 },
9594 ServerInput => sub
9695 {