test(sessions): make the offline-runtime regression test discriminating

The reworked assertion ran under the file-level PI_OFFLINE=1 stub, so the
runtime was offline whether or not createOfflineModelRuntime forced it and
the test passed with the fix fully removed. Clear the stub for that case,
and rewrap a docblock line.
This commit is contained in:
Federico Jaramillo Martinez
2026-07-25 13:32:21 +02:00
parent 90dd7ce401
commit 5d632ef11d
2 changed files with 7 additions and 3 deletions
+4 -3
View File
@@ -73,9 +73,10 @@ const noopLogger: ModelCatalogRefresherLogger = {
* own refreshes never touch the network and stay fast on request paths. This
* refresher is the single place that deliberately performs network refreshes —
* bounded by an abort timeout, serialized through one in-flight run, stopped by
* `dispose()` even mid-flight, and off any request path. `requestRefresh()` additionally asks for a prompt forced
* refresh after events that change what should be listed, such as provider
* logins, where the cached catalog is known to be wrong.
* `dispose()` even mid-flight, and off any request path. `requestRefresh()`
* additionally asks for a prompt forced refresh after events that change what
* should be listed, such as provider logins, where the cached catalog is known
* to be wrong.
*
* When the operator asked for offline behavior (`PI_OFFLINE` / `PI_WEB_OFFLINE`),
* the refresher performs no network I/O at all and the cached catalogs in