test torrent_list and display test names
authorDobrica Pavlinusic <dpavlin@rsync1.maxxo.com>
Wed, 11 Jan 2012 22:34:01 +0000 (23:34 +0100)
committerDobrica Pavlinusic <dpavlin@rsync1.maxxo.com>
Wed, 11 Jan 2012 22:34:01 +0000 (23:34 +0100)
t/Gearman.t

index da40275..b93b620 100755 (executable)
@@ -2,7 +2,7 @@
 use strict;
 use warnings;
 
-use Test::More tests => 4;
+use Test::More tests => 5;
 use Data::Dump qw(dump);
 
 use lib 'lib';
@@ -14,9 +14,12 @@ chomp $hostname;
 
 my $user = $ARGV[0] || 2001;
 
-ok my $o = CloudStore::Gearman->gearman_do( $hostname . '_s1_quota_get' => $user );
+ok my $o = CloudStore::Gearman->gearman_do( $hostname . '_s1_quota_get' => $user ), 'quota_get';
 diag dump $o;
 cmp_ok $o, '=~', qr/^(\d+)\s+(\d+)$/, 'format: used quota';
 
-ok $o = CloudStore::Gearman->gearman_do( 'user_usage' => $user );
+ok $o = CloudStore::Gearman->gearman_do( 'user_usage' => $user ), 'user_usage';
+diag dump $o;
+
+ok $o = CloudStore::Gearman->gearman_do( $hostname . '_s1_torrent_list' ), 'torrent_list';
 diag dump $o;