IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 12, 2008, 5:55:08 PM (18 years ago)
Author:
jhoblitt
Message:

change Nebulous::Server::stat() to not die when passed a non-existant key

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Nebulous-Server/t/09_server_stat_object.t

    r17072 r17650  
    33# Copryight (C) 2004-2005  Joshua Hoblitt
    44#
    5 # $Id: 09_server_stat_object.t,v 1.13 2008-03-20 21:10:14 jhoblitt Exp $
     5# $Id: 09_server_stat_object.t,v 1.14 2008-05-13 03:55:08 jhoblitt Exp $
    66
    77use strict;
     
    4949Test::Nebulous->setup;
    5050
    51 eval {
    52     $neb->stat_object("foo");
    53 };
    54 like($@, qr/is valid object key/, "object does not exist");
     51{
     52    my $stat = $neb->stat_object("foo");
     53    is($stat, undef, "object does not exist");
     54}
    5555
    5656Test::Nebulous->setup;
Note: See TracChangeset for help on using the changeset viewer.