Changeset 666

Show
Ignore:
Timestamp:
12/08/07 04:16:01 (1 year ago)
Author:
dormando
Message:

Add test for "flush_all 0" (Tomash Brechko)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/server/t/flush-all.t

    r436 r666  
    22 
    33use strict; 
    4 use Test::More tests => 10
     4use Test::More tests => 14
    55use FindBin qw($Bin); 
    66use lib "$Bin/lib"; 
     
    1616mem_get_is($sock, "foo", "fooval"); 
    1717print $sock "flush_all\r\n"; 
     18is(scalar <$sock>, "OK\r\n", "did flush_all"); 
     19mem_get_is($sock, "foo", undef); 
     20 
     21# Test flush_all with zero delay. 
     22print $sock "set foo 0 0 6\r\nfooval\r\n"; 
     23is(scalar <$sock>, "STORED\r\n", "stored foo"); 
     24 
     25mem_get_is($sock, "foo", "fooval"); 
     26print $sock "flush_all 0\r\n"; 
    1827is(scalar <$sock>, "OK\r\n", "did flush_all"); 
    1928mem_get_is($sock, "foo", undef);