Annotation Collisions

- Annotation timestamps are now incremented until unique.  This prevents
  rapid, successive annotations colliding.  The kind that occur during
  unit tests and when using UI wrapper programs.
- Removed 'sleep' commands in unit tests that were added to circumvent
  this.  This speeds up the test suite somewhat.
This commit is contained in:
Paul Beckingham 2011-08-13 21:53:10 -04:00
parent cb366e0270
commit be0522d567
6 changed files with 12 additions and 30 deletions

View file

@ -47,18 +47,11 @@ if (open my $fh, '>', 'denotate.rc')
# Add four tasks, annotate one three times, one twice, one just once and one none.
qx{../src/task rc:denotate.rc add one};
qx{../src/task rc:denotate.rc 1 annotate Ernie};
diag ("6 second delay");
sleep 1;
qx{../src/task rc:denotate.rc 1 annotate Bert};
sleep 1;
qx{../src/task rc:denotate.rc 1 annotate Bibo};
sleep 1;
qx{../src/task rc:denotate.rc 1 annotate Kermit the frog};
sleep 1;
qx{../src/task rc:denotate.rc 1 annotate Kermit the frog};
sleep 1;
qx{../src/task rc:denotate.rc 1 annotate Kermit};
sleep 1;
qx{../src/task rc:denotate.rc 1 annotate Kermit and Miss Piggy};
my $output = qx{../src/task rc:denotate.rc rrr};