Repository navigation
Commit 32a7951
committed
test(cache): coordinate the noncooperative factory timeout proof
Hold the original factory until its own cache timeout is observed,
then release it and verify replacement and late-result behavior.
This removes the race between two elapsed timers on loaded CI workers
without changing production code, budgets or the asserted contract.
Distinguish the test harness timeout and always release the factory.1 parent ec86884 commit 32a7951
2 files changed
Lines changed: 37 additions & 15 deletions
File tree
- backend/tests/LearnStack.Tests.Unit/Infrastructure/Caching
- docs/roadmap
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1105 | 1105 | | |
1106 | 1106 | | |
1107 | 1107 | | |
| 1108 | + | |
1108 | 1109 | | |
1109 | | - | |
| 1110 | + | |
1110 | 1111 | | |
1111 | 1112 | | |
1112 | | - | |
1113 | | - | |
| 1113 | + | |
1114 | 1114 | | |
1115 | 1115 | | |
1116 | | - | |
1117 | | - | |
1118 | | - | |
1119 | | - | |
1120 | | - | |
1121 | | - | |
1122 | | - | |
1123 | | - | |
1124 | | - | |
1125 | | - | |
1126 | | - | |
1127 | | - | |
| 1116 | + | |
| 1117 | + | |
| 1118 | + | |
| 1119 | + | |
| 1120 | + | |
| 1121 | + | |
| 1122 | + | |
| 1123 | + | |
| 1124 | + | |
| 1125 | + | |
| 1126 | + | |
| 1127 | + | |
| 1128 | + | |
| 1129 | + | |
| 1130 | + | |
| 1131 | + | |
| 1132 | + | |
| 1133 | + | |
| 1134 | + | |
| 1135 | + | |
| 1136 | + | |
| 1137 | + | |
| 1138 | + | |
1128 | 1139 | | |
1129 | 1140 | | |
1130 | 1141 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6453 | 6453 | | |
6454 | 6454 | | |
6455 | 6455 | | |
| 6456 | + | |
| 6457 | + | |
| 6458 | + | |
| 6459 | + | |
| 6460 | + | |
| 6461 | + | |
| 6462 | + | |
| 6463 | + | |
| 6464 | + | |
| 6465 | + | |
| 6466 | + | |
6456 | 6467 | | |
6457 | 6468 | | |
6458 | 6469 | | |
| |||
0 commit comments