Changeset 770
- Timestamp:
- 03/29/08 09:36:30 (7 months ago)
- Files:
-
- branches/binary/server/t/binary.t (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/binary/server/t/binary.t
r769 r770 3 3 use strict; 4 4 use warnings; 5 6 5 use Test::More 'no_plan'; 6 use FindBin qw($Bin); 7 use lib "$Bin/lib"; 8 use MemcachedTest; 9 10 my $server = new_memcached(); 11 12 ok($server, "started the server"); 7 13 8 14 # Based almost 100% off testClient.py which is Copyright (c) 2007 Dustin Sallings <dustin@spy.net> … … 214 220 my $self = shift; 215 221 216 my $host = shift || '127.0.0.1'; 217 my $port = shift || 11211; 218 219 my $sock = IO::Socket::INET->new(PeerHost => $host, PeerPort => $port); 220 221 unless ($sock) { 222 warn "Unable to contact memcached."; 223 return; 224 } 222 my $sock = $server->sock; 225 223 226 224 $self = fields::new($self);
