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
I'm not completely sure why this is happening, or necessary, though it's certainly unexpected that stubbing the system time would cause CSV writing to fail. Debugging errors like this is particularly frustrating due to the lack of stack traces or useful information about running threads of execution while Javascript is executing.
The text was updated successfully, but these errors were encountered:
Occasionally in tests we stub the system time using
sinon.useFakeTimers
. This causes the fast-csv library to hang before writing any rows.It looks like the problem is here: https://github.com/C2FO/fast-csv/blob/master/lib/extended.js#L16-L23. This library is not the only library with this problem: sinonjs/sinon#960
I'm not completely sure why this is happening, or necessary, though it's certainly unexpected that stubbing the system time would cause CSV writing to fail. Debugging errors like this is particularly frustrating due to the lack of stack traces or useful information about running threads of execution while Javascript is executing.
The text was updated successfully, but these errors were encountered: