From 82d16fa8b502a1246bf284e45bb71cf8ddc68eb1 Mon Sep 17 00:00:00 2001 From: Robin Edwards Date: Tue, 8 Feb 2011 16:22:17 +0000 Subject: added skip if riak env not set --- t/90_bug_links.t | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/t/90_bug_links.t b/t/90_bug_links.t index e1f71db..1c209eb 100644 --- a/t/90_bug_links.t +++ b/t/90_bug_links.t @@ -1,16 +1,17 @@ -use Data::Dumper; +use strict; +use warnings; use Net::Riak; use Test::More; BEGIN { - unless ( $ENV{RELEASE_TESTING} ) { + unless ( $ENV{RIAK_REST_HOST} ) { require Test::More; Test::More::plan( - skip_all => 'these tests are for release candidate testing' ); + skip_all => 'RIAK_REST_HOST not set.. skipping' ); } } -ok my $client = Net::Riak->new(host => 'http://127.0.0.1:8098'), 'client created'; +ok my $client = Net::Riak->new(host => $ENV{RIAK_REST_HOST}), 'client created'; # set up a bucket containing two person/user records and store them my $bucket_one = $client->bucket('ONE'); -- cgit v1.2.3