in reply to Re^3: How to write time-related test without race conditions?
in thread How to write time-related test without race conditions?
As for adding check to analyse overtime, this way lead to implementing very overcomplicated test - it should generate some events at unpredictable points of time to access cache, then it should run some amount of checks, also at unpredictable points of time, and these checks should first calculate expected state of cache at current time and then compare this state to actual state of cache. In addition to be overcomplicated, such test also can't guarantee it will correctly test all functionality of cache - for example, attempt to test item in cache won't expire before expected time will fail if function which checking this will always run too late (after item will be expired from cache). So, we again get unreliable test, plus overcomplicated.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: How to write time-related test without race conditions?
by Anonymous Monk on May 15, 2012 at 00:00 UTC | |
by powerman (Friar) on May 15, 2012 at 01:41 UTC | |
by Anonymous Monk on May 15, 2012 at 03:07 UTC |