Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

open() should not be able to make HTTP requests fix #963 #965

Merged
merged 14 commits into from
Mar 26, 2019

Conversation

mstoykov
Copy link
Contributor

No description provided.

@mstoykov mstoykov requested a review from na-- March 18, 2019 12:56
@codecov
Copy link

codecov bot commented Mar 19, 2019

Codecov Report

Merging #965 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #965   +/-   ##
=======================================
  Coverage   72.08%   72.08%           
=======================================
  Files         131      131           
  Lines        9601     9601           
=======================================
  Hits         6921     6921           
  Misses       2267     2267           
  Partials      413      413
Impacted Files Coverage Δ
js/initcontext.go 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 672769c...7123357. Read the comment docs.

@codecov
Copy link

codecov bot commented Mar 19, 2019

Codecov Report

Merging #965 into master will increase coverage by 0.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master    #965      +/-   ##
=========================================
+ Coverage   72.08%   72.1%   +0.01%     
=========================================
  Files         131     131              
  Lines        9602    9615      +13     
=========================================
+ Hits         6922    6933      +11     
- Misses       2267    2268       +1     
- Partials      413     414       +1
Impacted Files Coverage Δ
js/initcontext.go 97.75% <100%> (-2.25%) ⬇️
lib/archive.go 87.24% <100%> (+0.17%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3b1161c...5e80aa4. Read the comment docs.

js/initcontext.go Outdated Show resolved Hide resolved
@mstoykov mstoykov requested a review from na-- March 22, 2019 10:12
js/initcontext.go Outdated Show resolved Hide resolved
js/initcontext.go Outdated Show resolved Hide resolved
js/initcontext.go Outdated Show resolved Hide resolved
js/bundle_test.go Outdated Show resolved Hide resolved
js/bundle_test.go Outdated Show resolved Hide resolved
js/bundle_test.go Show resolved Hide resolved
@mstoykov mstoykov force-pushed the fixOpenNotOpeningURLs branch from 006bf3d to a1e35ae Compare March 25, 2019 10:16
Copy link
Member

@na-- na-- left a comment

Choose a reason for hiding this comment

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

Mostly LGTM now, besides that comment for checking the filename parameter for sanity 😄 . I checked, and nodejs also opens relative file paths based on the current working directory: https://nodejs.org/api/fs.html#fs_file_paths

Though they have a big UX advantage in the __dirname and __filename constants. We might want to introduce the same constants in k6 as well, though in a separate issue/PR. @robingustafsson, thoughts?

js/initcontext.go Show resolved Hide resolved
@mstoykov mstoykov merged commit 6c864f4 into master Mar 26, 2019
@mstoykov mstoykov deleted the fixOpenNotOpeningURLs branch March 26, 2019 09:34
@mstoykov mstoykov mentioned this pull request May 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants