You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the second request to a DO seems to hang. Since setImmediate is by default hijacked when FakeTimers.install is invoked without arguments this is a problem. Spelunking through the code, it seems like setImmediate is used for DO I/O gates which seems like a likely explanation as to why that happens. Maybe using queueMicrotask and capturing the value in the global scope might avoid problems with fake timers?
The text was updated successfully, but these errors were encountered:
If I install Sinon.JS fake timer as follows:
the second request to a DO seems to hang. Since
setImmediate
is by default hijacked whenFakeTimers.install
is invoked without arguments this is a problem. Spelunking through the code, it seems likesetImmediate
is used for DO I/O gates which seems like a likely explanation as to why that happens. Maybe usingqueueMicrotask
and capturing the value in the global scope might avoid problems with fake timers?The text was updated successfully, but these errors were encountered: