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

Add/move SharedArray tests to it's module #1795

Merged
merged 2 commits into from
Jan 13, 2021
Merged

Conversation

mstoykov
Copy link
Contributor

No description provided.

Comment on lines +103 to +115
initEnv := &common.InitEnvironment{
SharedObjects: common.NewSharedObjects(),
}
rt, err := newConfiguredRuntime(initEnv)
require.NoError(t, err)
_, err = rt.RunString(makeArrayScript)
require.NoError(t, err)

// create another Runtime with new ctx but keep the initEnv
rt, err = newConfiguredRuntime(initEnv)
require.NoError(t, err)
_, err = rt.RunString(makeArrayScript)
require.NoError(t, err)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Couldn't figure out what to name this block of code ... so I didn't move it to a function 🤷

@codecov-io
Copy link

codecov-io commented Jan 12, 2021

Codecov Report

Merging #1795 (aa25398) into master (acdc4d9) will decrease coverage by 0.02%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1795      +/-   ##
==========================================
- Coverage   71.44%   71.41%   -0.03%     
==========================================
  Files         180      180              
  Lines       13839    13839              
==========================================
- Hits         9887     9883       -4     
- Misses       3328     3332       +4     
  Partials      624      624              
Flag Coverage Δ
ubuntu 71.39% <ø> (ø)
windows 69.96% <ø> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
core/engine.go 90.95% <0.00%> (-2.02%) ⬇️
stats/cloud/collector.go 79.81% <0.00%> (-0.64%) ⬇️
lib/executor/vu_handle.go 95.23% <0.00%> (+1.90%) ⬆️

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 acdc4d9...aa25398. Read the comment docs.

Copy link
Contributor

@imiric imiric left a comment

Choose a reason for hiding this comment

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

Thanks, this cleans up that JS integration test nicely!

Just spotted a small typo I think.

js/modules/k6/data/share_test.go Outdated Show resolved Hide resolved
@mstoykov mstoykov requested a review from imiric January 12, 2021 12:39
@mstoykov mstoykov merged commit 2904961 into master Jan 13, 2021
@mstoykov mstoykov deleted the refactorSharedArrayTests branch January 13, 2021 12:05
@mstoykov mstoykov added this to the v0.30.0 milestone Jan 13, 2021
salem84 pushed a commit to salem84/k6 that referenced this pull request Feb 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants