Changeset 637

Show
Ignore:
Timestamp:
11/16/07 07:43:45 (1 year ago)
Author:
dormando
Message:

Test showing CAS ID replay problem. (Dustin Sallings <dustin@spy.net>)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/server/t/cas.t

    r636 r637  
    22 
    33use strict; 
    4 use Test::More tests => 8
     4use Test::More tests => 9
    55use FindBin qw($Bin); 
    66use lib "$Bin/lib"; 
     
    3636is(scalar <$sock>, "STORED\r\n", "cas success, set foo"); 
    3737 
     38# cas failure (reusing the same key) 
     39print $sock "cas foo 0 0 6 $result[0]\r\nbarva2\r\n"; 
     40is(scalar <$sock>, "EXISTS\r\n", "reusing a CAS ID"); 
     41 
    3842# delete foo 
    3943print $sock "delete foo\r\n";