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

@@ -49,8 +49,6 @@ qx{../src/task rc:hasnt.rc 2 annotate bar};
# 3
qx{../src/task rc:hasnt.rc add foo};
qx{../src/task rc:hasnt.rc 3 annotate bar};
diag ("3 second delay");
sleep 1;
qx{../src/task rc:hasnt.rc 3 annotate baz};
# 4
@@ -63,13 +61,11 @@ qx{../src/task rc:hasnt.rc 5 annotate foo};
# 6
qx{../src/task rc:hasnt.rc add bar};
qx{../src/task rc:hasnt.rc 6 annotate foo};
sleep 1;
qx{../src/task rc:hasnt.rc 6 annotate baz};
#7
qx{../src/task rc:hasnt.rc add one};
qx{../src/task rc:hasnt.rc 7 annotate two};
sleep 1;
qx{../src/task rc:hasnt.rc 7 annotate three};
my $output = qx{../src/task rc:hasnt.rc ls description.has:foo};