Changeset 10f56a


Ignore:
Timestamp:
01/09/08 18:57:39 (4 years ago)
Author:
Tomash Brechko <tomash.brechko@…>
Branches:
master, ketama-compat
Children:
273f1f
Parents:
af8239
git-author:
Tomash Brechko <tomash.brechko@…> (01/09/08 17:02:25)
git-committer:
Tomash Brechko <tomash.brechko@…> (01/09/08 18:57:39)
Message:

Add non-existend keys to the test.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • t/nowait.t

    r03d51a r10f56a  
    2929$Memd::memd->replace('no-such-key', 1); 
    3030 
    31 my $res = $Memd::memd->get_multi(@keys); 
     31my @extra_keys = @keys; 
     32for (1..count) { 
     33    splice(@extra_keys, int(rand(@extra_keys + 1)), 0, "no_such_key-$_"); 
     34} 
     35my $res = $Memd::memd->get_multi(@extra_keys); 
    3236isa_ok($res, 'HASH'); 
    3337is(scalar keys %$res, count, 'Fetched all keys'); 
Note: See TracChangeset for help on using the changeset viewer.