Skip to content

Conversation

@jennynju
Copy link
Contributor

@jennynju jennynju commented Dec 12, 2019

Fixes #2594.

Root cause description:
Test case 'should pass errors for a failed stream' failed because of the difference between OS systems. In Windows, path does use '/' as delimiter.

Code change description:
Use "__dirname" which is the absolute path of the directory containing the currently executing file to construct the 'do not exist' folder to keep consistency between different OS systems.

Copy link
Contributor

@chinesedfan chinesedfan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would you mind follow suggestions from @a631807682 or #2594 (comment)?

@chinesedfan chinesedfan merged commit 9267d4d into axios:master Feb 15, 2020
@chinesedfan chinesedfan changed the title Fixing axios#2594, unit test failure in Windows OS. Fixing unit test failure in Windows OS Feb 15, 2020
@axios axios locked and limited conversation to collaborators May 3, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unit test fails when excuting the unit test in Windows OS

2 participants