summaryrefslogtreecommitdiff
path: root/t/pbc.t
diff options
context:
space:
mode:
authorRobin Edwards <robin.ge@gmail.com>2012-07-04 06:41:18 -0700
committerRobin Edwards <robin.ge@gmail.com>2012-07-04 06:41:18 -0700
commit7afabed9e14ec3ea9de72c39fec56672ec63c5c1 (patch)
tree847855150cccc0c1e17c91ac8ea90845ce2b1910 /t/pbc.t
parentMerge pull request #17 from dams/master (diff)
parentSupport for a timeout attribute in the PBC client (diff)
downloadnet-riak-7afabed9e14ec3ea9de72c39fec56672ec63c5c1.tar.gz
Merge pull request #18 from sukria/master
Support for timeout attribute in the PBC client
Diffstat (limited to 't/pbc.t')
-rw-r--r--t/pbc.t28
1 files changed, 28 insertions, 0 deletions
diff --git a/t/pbc.t b/t/pbc.t
new file mode 100644
index 0000000..326ec3b
--- /dev/null
+++ b/t/pbc.t
@@ -0,0 +1,28 @@
+use Net::Riak;
+use strict;
+use warnings;
+
+use Test::More;
+
+my $r = Net::Riak->new(
+ transport => 'PBC',
+ host => '10.0.0.40',
+ port => 8080
+ );
+
+is $r->client->timeout,30, "timeout defaults to 30";
+
+my $r = Net::Riak->new(
+ transport => 'PBC',
+ host => '10.0.0.40',
+ port => 8080,
+ timeout => 2,
+ );
+
+is $r->client->timeout, 2, "timeout changed";
+
+
+
+
+
+done_testing;