Changeset 13092 for trunk/Nebulous/t/63_client_stat.t
- Timestamp:
- Apr 30, 2007, 4:52:04 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/Nebulous/t/63_client_stat.t (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Nebulous/t/63_client_stat.t
r5667 r13092 3 3 # Copryight (C) 2004-2005 Joshua Hoblitt 4 4 # 5 # $Id: 63_client_stat.t,v 1. 1 2005-12-03 02:52:31jhoblitt Exp $5 # $Id: 63_client_stat.t,v 1.2 2007-05-01 02:52:04 jhoblitt Exp $ 6 6 7 7 use strict; … … 10 10 use Apache::Test qw( -withtestmore ); 11 11 12 plan tests => 1 3;12 plan tests => 11; 13 13 14 14 use lib qw( ./t ./lib ); … … 30 30 my $info = $neb->stat( "foo" ); 31 31 32 is( scalar @$info, 8, "number of columns" );32 is( scalar @$info, 6, "number of columns" ); 33 33 } 34 34 … … 39 39 proxy => "http://$hostport/nebulous", 40 40 ); 41 $neb->create( "foo", 0, "node01", "foobar" );41 $neb->create( "foo", "node01" ); 42 42 43 43 my $info = $neb->stat( "foo" ); 44 44 45 is( scalar @$info, 8, "number of columns" );45 is( scalar @$info, 6, "number of columns" ); 46 46 is( @$info[0], 1, "so_id" ); 47 47 is( @$info[1], "foo", "ext_id" ); 48 is( @$info[2], 0, "class_id" ); 49 is( @$info[3], "foobar", "comment" ); 50 is( @$info[4], 0, "read lock" ); 51 is( @$info[5], undef, "write lock" ); 52 like( @$info[6], qr/....-..-.. ..:..:../, "epoch" ); 53 like( @$info[6], qr/....-..-.. ..:..:../, "mtime" ); 48 is( @$info[2], 0, "read lock" ); 49 is( @$info[3], undef, "write lock" ); 50 like( @$info[4], qr/....-..-.. ..:..:../, "epoch" ); 51 like( @$info[5], qr/....-..-.. ..:..:../, "mtime" ); 54 52 } 55 53
Note:
See TracChangeset
for help on using the changeset viewer.
