import/export: Improve error handling, promisify#4957
Conversation
8c93813 to
4cc1adc
Compare
|
can we please modify the timeouts, not entirely remove them? I don't mind if they are longer but they are present for a purpose :) |
|
Mocha has a default timeout so it won't hang or anything. I prefer to leave out timeouts unless there's a reason to change the default because they're hard to tune and make tests flaky. |
|
The test timeouts are for detecting if a change in an implementation slows down the functionality. |
4cc1adc to
083071f
Compare
|
It's better to have purpose-built benchmarks for testing slowdows. Using timeouts for this purpose isn't particularly helpful because the tests will fail on slow machines even if the change did not slow things down, and the tests will pass on fast machines even if the change did slow things down. |
While that may be the case can we please not make it part of the conversation of this PR to keep things simple and inline with the rest of the testing specs? |
083071f to
2b4e48d
Compare
2b4e48d to
824c424
Compare
|
Bumped the timeout to 1s. |
0dc2aa7 to
bbe8d3d
Compare
This avoids having two callbacks, which improves readability.
This avoids having two callbacks, which improves readability.
bbe8d3d to
2a75b17
Compare
2a75b17 to
fd1164c
Compare
|
This is ready for review @JohnMcLear. |
Multiple commits:
assertto simplify import/export testsreturnfileExtensionproperty on intermediate stepasync.seriesto properly handle conversion errors