Expect 21st access to have value 21, not 20!
authorMike Taylor <mike@indexdata.com>
Tue, 9 Dec 2014 12:18:16 +0000 (12:18 +0000)
committerMike Taylor <mike@indexdata.com>
Tue, 9 Dec 2014 12:18:16 +0000 (12:18 +0000)
t/02-IndexData-Utils-PersistentCounter.t

index aa05060..8b57c30 100644 (file)
@@ -41,7 +41,7 @@ while ((my $pid = wait()) > 0) {
 }
 
 my $n = $counter->next();
 }
 
 my $n = $counter->next();
-ok($n == 20, "n == 20 after 20 accesses (n=$n)");
+ok($n == 21, "n == 21 on 21 total access (n=$n)");
 
 my $ok = $counter->delete();
 ok($ok, "deleted counter file");
 
 my $ok = $counter->delete();
 ok($ok, "deleted counter file");