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
Ignoring the fact that this probably shouldn't be doing synchronous I/O (if not, then why isn't readFileSync being called instead of the async variant?), the issue is the underlying file may be deleted in between the readFile and statSync calls. This results in an uncaughtError: ENOENT: no such file or directory, instead of the expected NoSuchKey error being returned.
The text was updated successfully, but these errors were encountered:
Relevant code from
getObject
:mock-aws-s3/lib/mock.js
Lines 312 to 314 in 6b5aa02
Ignoring the fact that this probably shouldn't be doing synchronous I/O (if not, then why isn't readFileSync being called instead of the async variant?), the issue is the underlying file may be deleted in between the
readFile
andstatSync
calls. This results in an uncaughtError: ENOENT: no such file or directory
, instead of the expectedNoSuchKey
error being returned.The text was updated successfully, but these errors were encountered: