Commit 99b9166
committed
test: fix TestPoolSizeLimit flaky failure on Windows
Relax eviction check on Windows where efficient plugin reuse with
compilation cache may result in zero evictions.
On Windows, parallel goroutines can reuse cached compiled plugins
efficiently, never exceeding MaxIdlePerScript limit, thus no evictions.
On macOS/Linux, plugins create slower causing evictions as expected.
This is expected behavior, not a bug - the pool still enforces size limits.1 parent 77c3d3e commit 99b9166
File tree
1 file changed
+7
-1
lines changed- internal/features/scripting/infrastructure/extism
1 file changed
+7
-1
lines changedLines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
342 | 343 | | |
343 | 344 | | |
344 | 345 | | |
| 346 | + | |
345 | 347 | | |
346 | | - | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
347 | 353 | | |
348 | 354 | | |
349 | 355 | | |
| |||
0 commit comments